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
3583cff5
Kaydet (Commit)
3583cff5
authored
Nis 30, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1472854: make the rlcompleter.Completer class usable on non-
UNIX platforms.
üst
208badda
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
14 deletions
+19
-14
librlcompleter.tex
Doc/lib/librlcompleter.tex
+9
-7
rlcompleter.py
Lib/rlcompleter.py
+6
-2
test_sundry.py
Lib/test/test_sundry.py
+1
-5
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/lib/librlcompleter.tex
Dosyayı görüntüle @
3583cff5
...
@@ -2,18 +2,17 @@
...
@@ -2,18 +2,17 @@
Completion function for GNU readline
}
Completion function for GNU readline
}
\declaremodule
{
standard
}{
rlcompleter
}
\declaremodule
{
standard
}{
rlcompleter
}
\platform
{
Unix
}
\sectionauthor
{
Moshe Zadka
}{
moshez@zadka.site.co.il
}
\sectionauthor
{
Moshe Zadka
}{
moshez@zadka.site.co.il
}
\modulesynopsis
{
Python identifier completion for the GNU readline library.
}
\modulesynopsis
{
Python identifier completion
, suitable
for the GNU readline library.
}
The
\module
{
rlcompleter
}
module defines a completion function for
The
\module
{
rlcompleter
}
module defines a completion function
suitable
for
the
\refmodule
{
readline
}
module by completing valid Python identifiers
the
\refmodule
{
readline
}
module by completing valid Python identifiers
and keywords.
and keywords.
This module is
\UNIX
-specific due to its dependence on the
When this module is imported on a
\UNIX\
platform with the
\module
{
readline
}
\refmodule
{
readline
}
module.
module available, an instance of the
\class
{
Completer
}
class is automatically
created and its
\method
{
complete
}
method is set as the
\module
{
readline
}
The
\module
{
rlcompleter
}
module defines the
\class
{
Completer
}
class
.
completer
.
Example:
Example:
...
@@ -44,6 +43,9 @@ else:
...
@@ -44,6 +43,9 @@ else:
\end{verbatim}
\end{verbatim}
On platforms without
\module
{
readline
}
, the
\class
{
Completer
}
class defined
by this module can still be used for custom purposes.
\subsection
{
Completer Objects
\label
{
completer-objects
}}
\subsection
{
Completer Objects
\label
{
completer-objects
}}
Completer objects have the following method:
Completer objects have the following method:
...
...
Lib/rlcompleter.py
Dosyayı görüntüle @
3583cff5
...
@@ -39,7 +39,6 @@ used, and this module (and the readline module) are silently inactive.
...
@@ -39,7 +39,6 @@ used, and this module (and the readline module) are silently inactive.
"""
"""
import
readline
import
__builtin__
import
__builtin__
import
__main__
import
__main__
...
@@ -147,4 +146,9 @@ def get_class_members(klass):
...
@@ -147,4 +146,9 @@ def get_class_members(klass):
ret
=
ret
+
get_class_members
(
base
)
ret
=
ret
+
get_class_members
(
base
)
return
ret
return
ret
readline
.
set_completer
(
Completer
()
.
complete
)
try
:
import
readline
except
ImportError
:
pass
else
:
readline
.
set_completer
(
Completer
()
.
complete
)
Lib/test/test_sundry.py
Dosyayı görüntüle @
3583cff5
...
@@ -50,11 +50,7 @@ import pstats
...
@@ -50,11 +50,7 @@ import pstats
import
py_compile
import
py_compile
import
pydoc
import
pydoc
import
rexec
import
rexec
try
:
import
rlcompleter
import
rlcompleter
# not available on Windows
except
ImportError
:
if
verbose
:
print
"skipping rlcompleter"
import
sched
import
sched
import
smtplib
import
smtplib
import
sndhdr
import
sndhdr
...
...
Misc/NEWS
Dosyayı görüntüle @
3583cff5
...
@@ -86,6 +86,9 @@ Extension Modules
...
@@ -86,6 +86,9 @@ Extension Modules
Library
Library
-------
-------
- Patch #1472854: make the rlcompleter.Completer class usable on non-
UNIX platforms.
- Patch #1470846: fix urllib2 ProxyBasicAuthHandler.
- Patch #1470846: fix urllib2 ProxyBasicAuthHandler.
- Patch #1475231: ``doctest`` has a new ``SKIP`` option, which causes
- Patch #1475231: ``doctest`` has a new ``SKIP`` option, which causes
...
...
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