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
7f8d17a5
Kaydet (Commit)
7f8d17a5
authored
Ara 31, 2003
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
general markup improvements
üst
188b2d6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
libcmd.tex
Doc/lib/libcmd.tex
+6
-5
No files found.
Doc/lib/libcmd.tex
Dosyayı görüntüle @
7f8d17a5
...
...
@@ -11,7 +11,8 @@ line-oriented command interpreters. These are often useful for
test harnesses, administrative tools, and prototypes that will
later be wrapped in a more sophisticated interface.
\begin{classdesc}
{
Cmd
}{
\optional
{
completekey
}
,
\optional
{
stdin
}
,
\optional
{
stdout
}}
\begin{classdesc}
{
Cmd
}{
\optional
{
completekey
\optional
{
,
stdin
\optional
{
, stdout
}}}}
A
\class
{
Cmd
}
instance or subclass instance is a line-oriented
interpreter framework. There is no good reason to instantiate
\class
{
Cmd
}
itself; rather, it's useful as a superclass of an
...
...
@@ -20,7 +21,7 @@ interpreter class you define yourself in order to inherit
The optional argument
\var
{
completekey
}
is the
\refmodule
{
readline
}
name
of a completion key; it defaults to
\kbd
{
Tab
}
. If
\var
{
completekey
}
is
not
\co
de
{
None
}
and
\
module
{
readline
}
is available, command completion
not
\co
nstant
{
None
}
and
\ref
module
{
readline
}
is available, command completion
is done automatically.
The optional arguments
\var
{
stdin
}
and
\var
{
stdout
}
specify the
...
...
@@ -44,7 +45,7 @@ remainder of the line as argument.
The optional argument is a banner or intro string to be issued before the
first prompt (this overrides the
\member
{
intro
}
class member).
If the
\module
{
readline
}
module is loaded, input will automatically
If the
\
ref
module
{
readline
}
module is loaded, input will automatically
inherit
\program
{
bash
}
-like history-list editing (e.g.
\kbd
{
Control-P
}
scrolls back to the last command,
\kbd
{
Control-N
}
forward to the next
one,
\kbd
{
Control-F
}
moves the cursor to the right non-destructively,
...
...
@@ -184,7 +185,7 @@ A flag, defaulting to true. If true, \method{cmdloop()} uses
\function
{
raw
_
input()
}
to display a prompt and read the next command;
if false,
\method
{
sys.stdout.write()
}
and
\method
{
sys.stdin.readline()
}
are used. (This means that by
importing
\module
{
readline
}
, on systems that support it, the
interpreter will automatically support
Emacs
-like line editing
importing
\
ref
module
{
readline
}
, on systems that support it, the
interpreter will automatically support
\program
{
Emacs
}
-like line editing
and command-history keystrokes.)
\end{memberdesc}
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