Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3420057a
Kaydet (Commit)
3420057a
authored
Şub 11, 2013
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #17158: Add 'symbols' to help() welcome message; clarify 'modules spam'
messages.
üst
4e08f786
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
pydoc.py
Lib/pydoc.py
+8
-7
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
3420057a
...
...
@@ -1847,10 +1847,10 @@ Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".
To get a list of available modules, keywords,
or topics, type "modules",
"
keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".
To get a list of available modules, keywords,
symbols, or topics, type
"
modules", "keywords", "symbols", or "topics". Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string
such as "spam", type "modules spam".
'''
%
tuple
([
sys
.
version
[:
3
]]
*
2
))
def
list
(
self
,
items
,
columns
=
4
,
width
=
80
):
...
...
@@ -1955,9 +1955,10 @@ module "pydoc_data.topics" could not be found.
def
listmodules
(
self
,
key
=
''
):
if
key
:
self
.
output
.
write
(
'''
Here is a list of matching modules. Enter any module name to get more help.
Here is a list of modules whose name or summary contains '{}'.
If there are any, enter a module name to get more help.
'''
)
'''
.
format
(
key
)
)
apropos
(
key
)
else
:
self
.
output
.
write
(
'''
...
...
@@ -1976,7 +1977,7 @@ Please wait a moment while I gather a list of all available modules...
self
.
list
(
modules
.
keys
())
self
.
output
.
write
(
'''
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose
descriptions contain the word
"spam".
for modules whose
name or summary contain the string
"spam".
'''
)
help
=
Helper
()
...
...
Misc/NEWS
Dosyayı görüntüle @
3420057a
...
...
@@ -1122,6 +1122,9 @@ Core and Builtins
Library
-------
- Issue #17158: Add '
symbols
' to help() welcome message; clarify
'
modules
spam
' messages.
- Issue #15847: Fix a regression in argparse, which did not accept tuples as
argument lists anymore.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment