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
b15c3049
Kaydet (Commit)
b15c3049
authored
Nis 05, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #6953: Merge readline doc from 3.5
üst
c86c91aa
0f767394
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
16 deletions
+20
-16
readline.rst
Doc/library/readline.rst
+0
-0
NEWS
Misc/NEWS
+4
-0
readline.c
Modules/readline.c
+16
-16
No files found.
Doc/library/readline.rst
Dosyayı görüntüle @
b15c3049
This diff is collapsed.
Click to expand it.
Misc/NEWS
Dosyayı görüntüle @
b15c3049
...
...
@@ -895,6 +895,10 @@ IDLE
Documentation
-------------
-
Issue
#
6953
:
Rework
the
Readline
module
documentation
to
group
related
functions
together
,
and
add
more
details
such
as
what
underlying
Readline
functions
and
variables
are
accessed
.
-
Issue
#
23606
:
Adds
note
to
ctypes
documentation
regarding
cdll
.
msvcrt
.
-
Issue
#
24952
:
Clarify
the
default
size
argument
of
stack_size
()
in
...
...
Modules/readline.c
Dosyayı görüntüle @
b15c3049
...
...
@@ -149,7 +149,7 @@ parse_and_bind(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_parse_and_bind
,
"parse_and_bind(string) -> None
\n
\
Parse and execute single line of a readline init file
."
);
Execute the init line provided in the string argument
."
);
/* Exported function to parse a readline init file */
...
...
@@ -174,7 +174,7 @@ read_init_file(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_read_init_file
,
"read_init_file([filename]) -> None
\n
\
Pars
e a readline initialization file.
\n
\
Execut
e a readline initialization file.
\n
\
The default filename is the last filename used."
);
...
...
@@ -271,7 +271,7 @@ append_history_file(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_append_history_file
,
"append_history_file(nelements[, filename]) -> None
\n
\
Append the last nelements of the history list to file.
\n
\
Append the last nelements
items
of the history list to file.
\n
\
The default filename is ~/.history."
);
#endif
...
...
@@ -290,7 +290,7 @@ set_history_length(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
set_history_length_doc
,
"set_history_length(length) -> None
\n
\
set the maximal number of
item
s which will be written to
\n
\
set the maximal number of
line
s which will be written to
\n
\
the history file. A negative length is used to inhibit
\n
\
history truncation."
);
...
...
@@ -305,7 +305,7 @@ get_history_length(PyObject *self, PyObject *noarg)
PyDoc_STRVAR
(
get_history_length_doc
,
"get_history_length() -> int
\n
\
return the maximum number of
item
s that will be written to
\n
\
return the maximum number of
line
s that will be written to
\n
\
the history file."
);
...
...
@@ -371,7 +371,7 @@ set_startup_hook(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_set_startup_hook
,
"set_startup_hook([function]) -> None
\n
\
Set or remove the
startup_hook function
.
\n
\
Set or remove the
function invoked by the rl_startup_hook callback
.
\n
\
The function is called with no arguments just
\n
\
before readline prints the first prompt."
);
...
...
@@ -388,7 +388,7 @@ set_pre_input_hook(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_set_pre_input_hook
,
"set_pre_input_hook([function]) -> None
\n
\
Set or remove the
pre_input_hook function
.
\n
\
Set or remove the
function invoked by the rl_pre_input_hook callback
.
\n
\
The function is called with no arguments after the first prompt
\n
\
has been printed and just before readline starts reading input
\n
\
characters."
);
...
...
@@ -419,7 +419,7 @@ get_begidx(PyObject *self, PyObject *noarg)
PyDoc_STRVAR
(
doc_get_begidx
,
"get_begidx() -> int
\n
\
get the beginning index of the
readline tab-
completion scope"
);
get the beginning index of the completion scope"
);
/* Get the ending index for the scope of the tab-completion */
...
...
@@ -433,7 +433,7 @@ get_endidx(PyObject *self, PyObject *noarg)
PyDoc_STRVAR
(
doc_get_endidx
,
"get_endidx() -> int
\n
\
get the ending index of the
readline tab-
completion scope"
);
get the ending index of the completion scope"
);
/* Set the tab-completion word-delimiters that readline uses */
...
...
@@ -462,7 +462,7 @@ set_completer_delims(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_set_completer_delims
,
"set_completer_delims(string) -> None
\n
\
set the
readline word delimiters for tab-
completion"
);
set the
word delimiters for
completion"
);
/* _py_free_history_entry: Utility function to free a history entry. */
...
...
@@ -502,7 +502,7 @@ py_remove_history(PyObject *self, PyObject *args)
int
entry_number
;
HIST_ENTRY
*
entry
;
if
(
!
PyArg_ParseTuple
(
args
,
"i:remove_history"
,
&
entry_number
))
if
(
!
PyArg_ParseTuple
(
args
,
"i:remove_history
_item
"
,
&
entry_number
))
return
NULL
;
if
(
entry_number
<
0
)
{
PyErr_SetString
(
PyExc_ValueError
,
...
...
@@ -532,7 +532,7 @@ py_replace_history(PyObject *self, PyObject *args)
char
*
line
;
HIST_ENTRY
*
old_entry
;
if
(
!
PyArg_ParseTuple
(
args
,
"is:replace_history"
,
&
entry_number
,
if
(
!
PyArg_ParseTuple
(
args
,
"is:replace_history
_item
"
,
&
entry_number
,
&
line
))
{
return
NULL
;
}
...
...
@@ -573,7 +573,7 @@ py_add_history(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_add_history
,
"add_history(string) -> None
\n
\
add a
line
to the history buffer"
);
add a
n item
to the history buffer"
);
/* Get the tab-completion word-delimiters that readline uses */
...
...
@@ -586,7 +586,7 @@ get_completer_delims(PyObject *self, PyObject *noarg)
PyDoc_STRVAR
(
doc_get_completer_delims
,
"get_completer_delims() -> string
\n
\
get the
readline word delimiters for tab-
completion"
);
get the
word delimiters for
completion"
);
/* Set the completer function */
...
...
@@ -647,7 +647,7 @@ get_history_item(PyObject *self, PyObject *args)
int
idx
=
0
;
HIST_ENTRY
*
hist_ent
;
if
(
!
PyArg_ParseTuple
(
args
,
"i:
index
"
,
&
idx
))
if
(
!
PyArg_ParseTuple
(
args
,
"i:
get_history_item
"
,
&
idx
))
return
NULL
;
#ifdef __APPLE__
if
(
using_libedit_emulation
)
{
...
...
@@ -739,7 +739,7 @@ insert_text(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_insert_text
,
"insert_text(string) -> None
\n
\
Insert text into the
command line
."
);
Insert text into the
line buffer at the cursor position
."
);
/* Redisplay the line buffer */
...
...
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