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
44d7b6ad
Kaydet (Commit)
44d7b6ad
authored
Eyl 09, 2010
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add docstring to cmd.Cmd.do_help()
üst
bd889e8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
cmd.rst
Doc/library/cmd.rst
+0
-4
cmd.py
Lib/cmd.py
+1
-0
test_cmd.py
Lib/test/test_cmd.py
+4
-4
No files found.
Doc/library/cmd.rst
Dosyayı görüntüle @
44d7b6ad
...
...
@@ -312,10 +312,6 @@ blank lines to repeat commands, and the simple record and playback facility::
bye color goto home playback record right
circle forward heading left position reset undo
Undocumented commands:
======================
help
(turtle) help forward
Move the turtle forward by the specified distance: FORWARD 10
(turtle) record spiral.cmd
...
...
Lib/cmd.py
Dosyayı görüntüle @
44d7b6ad
...
...
@@ -288,6 +288,7 @@ class Cmd:
return
list
(
commands
|
topics
)
def
do_help
(
self
,
arg
):
'List available commands with "help" or detailed help with "help cmd".'
if
arg
:
# XXX check arg syntax
try
:
...
...
Lib/test/test_cmd.py
Dosyayı görüntüle @
44d7b6ad
...
...
@@ -84,11 +84,11 @@ class samplecmdclass(cmd.Cmd):
<BLANKLINE>
Documented commands (type help <topic>):
========================================
add
add
help
<BLANKLINE>
Undocumented commands:
======================
exit
help
shell
exit shell
<BLANKLINE>
Test for the function print_topics():
...
...
@@ -125,11 +125,11 @@ class samplecmdclass(cmd.Cmd):
<BLANKLINE>
Documented commands (type help <topic>):
========================================
add
add
help
<BLANKLINE>
Undocumented commands:
======================
exit
help
shell
exit shell
<BLANKLINE>
help text for add
Hello from postloop
...
...
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