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
3d050ddf
Kaydet (Commit)
3d050ddf
authored
Nis 19, 2014
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#9364: Improve the text printed by help(pydoc) and help(help).
üst
658af313
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
_sitebuiltins.py
Lib/_sitebuiltins.py
+5
-1
pydoc.py
Lib/pydoc.py
+4
-3
No files found.
Lib/_sitebuiltins.py
Dosyayı görüntüle @
3d050ddf
...
...
@@ -87,8 +87,12 @@ class _Printer(object):
class
_Helper
(
object
):
"""Define the builtin 'help'.
This is a wrapper around pydoc.help (with a twist).
This is a wrapper around pydoc.help that provides a helpful message
when 'help' is typed at the Python interactive prompt.
Calling help() at the Python prompt starts an interactive help session.
Calling help(thing) prints help for the python object 'thing'.
"""
def
__repr__
(
self
):
...
...
Lib/pydoc.py
Dosyayı görüntüle @
3d050ddf
#!/usr/bin/env python3
"""Generate Python documentation in HTML or text for interactive use.
In the Python interpreter, do "from pydoc import help" to provide
help. Calling help(thing) on a Python object documents the object.
At the Python interactive prompt, calling help(thing) on a Python object
documents the object, and calling help() starts up an interactive
help session.
Or, at the shell command line outside of Python:
...
...
@@ -1865,7 +1866,7 @@ has the same effect as typing a particular string at the help> prompt.
def
intro
(
self
):
self
.
output
.
write
(
'''
Welcome to Python
%
s
! This is the interactive help utility.
Welcome to Python
%
s
's help utility!
If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/
%
s/tutorial/.
...
...
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