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
921f32ce
Kaydet (Commit)
921f32ce
authored
Haz 02, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mention abs(complex) -> magnitude (AMK).
Documented list(). Mention [raw_]input()'s interface to GNU readline.
üst
3a0d8501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
6 deletions
+36
-6
libfuncs.tex
Doc/lib/libfuncs.tex
+18
-3
libfuncs.tex
Doc/libfuncs.tex
+18
-3
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
921f32ce
...
...
@@ -7,7 +7,8 @@ are always available. They are listed here in alphabetical order.
\renewcommand
{
\indexsubitem
}{
(built-in function)
}
\begin{funcdesc}
{
abs
}{
x
}
Return the absolute value of a number. The argument may be a plain
or long integer or a floating point number.
or long integer or a floating point number. If the argument is a
complex number, its magnitude is returned.
\end{funcdesc}
\begin{funcdesc}
{
apply
}{
function
\,
args
\optional
{
, keywords
}}
...
...
@@ -221,7 +222,8 @@ module from which it is called).
\begin{funcdesc}
{
input
}{
\optional
{
prompt
}}
Almost equivalent to
\code
{
eval(raw
_
input(
\var
{
prompt
}
))
}
. Like
\code
{
raw
_
input()
}
, the
\var
{
prompt
}
argument is optional. The difference
\code
{
raw
_
input()
}
, the
\var
{
prompt
}
argument is optional, and GNU
readline is used when configured. The difference
is that a long input expression may be broken over multiple lines using
the backslash convention.
\end{funcdesc}
...
...
@@ -256,6 +258,15 @@ module from which it is called).
may be a sequence (string, tuple or list) or a mapping (dictionary).
\end{funcdesc}
\begin{funcdesc}
{
list
}{
sequence
}
Return a list whose items are the same and in the same order as
\var
{
sequence
}
's items. If
\var
{
sequence
}
is already a list,
a copy is made and returned, similar to
\code
{
\var
{
sequence
}
[:]
}
.
For instance,
\code
{
list('abc')
}
returns
returns
\code
{
['a', 'b', 'c']
}
and
\code
{
list( (1, 2, 3) )
}
returns
\code
{
[1, 2, 3]
}
.
\end{funcdesc}
\begin{funcdesc}
{
locals
}{}
Return a dictionary representing the current local symbol table.
Inside a function, modifying this dictionary does not always have the
...
...
@@ -400,6 +411,10 @@ there's no reliable way to determine whether this is the case.}
"Monty Python's Flying Circus"
>>>
\end{verbatim}
\ecode
If the interpreter was built to use the GNU readline library, then
\code
{
raw
_
input()
}
will use it to provide elaborate
line editing and history features.
\end{funcdesc}
\begin{funcdesc}
{
reduce
}{
function
\,
list
\optional
{
\,
initializer
}}
...
...
@@ -494,7 +509,7 @@ its goal is to return a printable string.
\begin{funcdesc}
{
tuple
}{
sequence
}
Return a tuple whose items are the same and in the same order as
\var
{
sequence
}
's items. If
\var
{
sequence
}
is alread a tuple, it
\var
{
sequence
}
's items. If
\var
{
sequence
}
is alread
y
a tuple, it
is returned unchanged. For instance,
\code
{
tuple('abc')
}
returns
returns
\code
{
('a', 'b', 'c')
}
and
\code
{
tuple([1, 2, 3])
}
returns
\code
{
(1, 2, 3)
}
.
...
...
Doc/libfuncs.tex
Dosyayı görüntüle @
921f32ce
...
...
@@ -7,7 +7,8 @@ are always available. They are listed here in alphabetical order.
\renewcommand
{
\indexsubitem
}{
(built-in function)
}
\begin{funcdesc}
{
abs
}{
x
}
Return the absolute value of a number. The argument may be a plain
or long integer or a floating point number.
or long integer or a floating point number. If the argument is a
complex number, its magnitude is returned.
\end{funcdesc}
\begin{funcdesc}
{
apply
}{
function
\,
args
\optional
{
, keywords
}}
...
...
@@ -221,7 +222,8 @@ module from which it is called).
\begin{funcdesc}
{
input
}{
\optional
{
prompt
}}
Almost equivalent to
\code
{
eval(raw
_
input(
\var
{
prompt
}
))
}
. Like
\code
{
raw
_
input()
}
, the
\var
{
prompt
}
argument is optional. The difference
\code
{
raw
_
input()
}
, the
\var
{
prompt
}
argument is optional, and GNU
readline is used when configured. The difference
is that a long input expression may be broken over multiple lines using
the backslash convention.
\end{funcdesc}
...
...
@@ -256,6 +258,15 @@ module from which it is called).
may be a sequence (string, tuple or list) or a mapping (dictionary).
\end{funcdesc}
\begin{funcdesc}
{
list
}{
sequence
}
Return a list whose items are the same and in the same order as
\var
{
sequence
}
's items. If
\var
{
sequence
}
is already a list,
a copy is made and returned, similar to
\code
{
\var
{
sequence
}
[:]
}
.
For instance,
\code
{
list('abc')
}
returns
returns
\code
{
['a', 'b', 'c']
}
and
\code
{
list( (1, 2, 3) )
}
returns
\code
{
[1, 2, 3]
}
.
\end{funcdesc}
\begin{funcdesc}
{
locals
}{}
Return a dictionary representing the current local symbol table.
Inside a function, modifying this dictionary does not always have the
...
...
@@ -400,6 +411,10 @@ there's no reliable way to determine whether this is the case.}
"Monty Python's Flying Circus"
>>>
\end{verbatim}
\ecode
If the interpreter was built to use the GNU readline library, then
\code
{
raw
_
input()
}
will use it to provide elaborate
line editing and history features.
\end{funcdesc}
\begin{funcdesc}
{
reduce
}{
function
\,
list
\optional
{
\,
initializer
}}
...
...
@@ -494,7 +509,7 @@ its goal is to return a printable string.
\begin{funcdesc}
{
tuple
}{
sequence
}
Return a tuple whose items are the same and in the same order as
\var
{
sequence
}
's items. If
\var
{
sequence
}
is alread a tuple, it
\var
{
sequence
}
's items. If
\var
{
sequence
}
is alread
y
a tuple, it
is returned unchanged. For instance,
\code
{
tuple('abc')
}
returns
returns
\code
{
('a', 'b', 'c')
}
and
\code
{
tuple([1, 2, 3])
}
returns
\code
{
(1, 2, 3)
}
.
...
...
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