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
ea81edf0
Kaydet (Commit)
ea81edf0
authored
Kas 25, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Markup nits.
Fixed an index entry, added three more.
üst
1475e88a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
ref5.tex
Doc/ref/ref5.tex
+15
-10
No files found.
Doc/ref/ref5.tex
Dosyayı görüntüle @
ea81edf0
...
@@ -82,7 +82,7 @@ raises a \exception{NameError} exception.
...
@@ -82,7 +82,7 @@ raises a \exception{NameError} exception.
\indexii
{
private
}{
names
}
%
\indexii
{
private
}{
names
}
%
when an identifier that textually occurs in a class definition begins
when an identifier that textually occurs in a class definition begins
with two or more underscore characters and does not end in two or more
with two or more underscore characters and does not end in two or more
underscores, it is considered a
``private name''
of that class.
underscores, it is considered a
\dfn
{
private name
}
of that class.
Private names are transformed to a longer form before code is
Private names are transformed to a longer form before code is
generated for them. The transformation inserts the class name in
generated for them. The transformation inserts the class name in
front of the name, with leading underscores removed, and a single
front of the name, with leading underscores removed, and a single
...
@@ -356,9 +356,14 @@ slice item is the key. The conversion of a slice item that is an
...
@@ -356,9 +356,14 @@ slice item is the key. The conversion of a slice item that is an
expression is that expression. The conversion of an ellipsis slice
expression is that expression. The conversion of an ellipsis slice
item is the built-in
\code
{
Ellipsis
}
object. The conversion of a
item is the built-in
\code
{
Ellipsis
}
object. The conversion of a
proper slice is a slice object (see section
\ref
{
types
}
) whose
proper slice is a slice object (see section
\ref
{
types
}
) whose
\code
{
start
}
,
\code
{
stop
}
and
\code
{
step
}
attributes are the values of
\member
{
start
}
,
\member
{
stop
}
and
\member
{
step
}
attributes are the
the expressions given as lower bound, upper bound and stride,
values of the expressions given as lower bound, upper bound and
respectively, substituting
\code
{
None
}
for missing expressions.
stride, respectively, substituting
\code
{
None
}
for missing
expressions.
\withsubitem
{
(slice object attribute)
}{
%
\ttindex
{
start
}
%
\ttindex
{
stop
}
%
\ttindex
{
step
}}
\subsection
{
Calls
\label
{
calls
}}
\subsection
{
Calls
\label
{
calls
}}
\index
{
call
}
\index
{
call
}
...
@@ -409,23 +414,23 @@ the list of filled slots is used as the argument list for the call.
...
@@ -409,23 +414,23 @@ the list of filled slots is used as the argument list for the call.
If there are more positional arguments than there are formal parameter
If there are more positional arguments than there are formal parameter
slots, a
\exception
{
TypeError
}
exception is raised, unless a formal
slots, a
\exception
{
TypeError
}
exception is raised, unless a formal
parameter using the syntax
``
\code
{
*identifier
}
''
is present; in this
parameter using the syntax
\samp
{
*identifier
}
is present; in this
case, that formal parameter receives a tuple containing the excess
case, that formal parameter receives a tuple containing the excess
positional arguments (or an empty tuple if there were no excess
positional arguments (or an empty tuple if there were no excess
positional arguments).
positional arguments).
If any keyword argument does not correspond to a formal parameter
If any keyword argument does not correspond to a formal parameter
name, a
\exception
{
TypeError
}
exception is raised, unless a formal
name, a
\exception
{
TypeError
}
exception is raised, unless a formal
parameter using the syntax
``
\code
{
**identifier
}
''
is present; in this
parameter using the syntax
\samp
{
**identifier
}
is present; in this
case, that formal parameter receives a dictionary containing the
case, that formal parameter receives a dictionary containing the
excess keyword arguments (using the keywords as keys and the argument
excess keyword arguments (using the keywords as keys and the argument
values as corresponding values), or a (new) empty dictionary if there
values as corresponding values), or a (new) empty dictionary if there
were no excess keyword arguments.
were no excess keyword arguments.
Formal parameters using the syntax
``
\code
{
*identifier
}
''
or
Formal parameters using the syntax
\samp
{
*identifier
}
or
``
\code
{
**identifier
}
''
cannot be used as positional argument slots or
\samp
{
**identifier
}
cannot be used as positional argument slots or
as keyword argument names. Formal parameters using the syntax
as keyword argument names. Formal parameters using the syntax
``
\code
{
(sublist)
}
''
cannot be used as keyword argument names; the
\samp
{
(sublist)
}
cannot be used as keyword argument names; the
outermost sublist corresponds to a single unnamed argument slot, and
outermost sublist corresponds to a single unnamed argument slot, and
the argument value is assigned to the sublist using the usual tuple
the argument value is assigned to the sublist using the usual tuple
assignment rules after all other parameter processing is done.
assignment rules after all other parameter processing is done.
...
@@ -475,7 +480,7 @@ argument list of the call: the instance becomes the first argument.
...
@@ -475,7 +480,7 @@ argument list of the call: the instance becomes the first argument.
\item
[a class instance:]
The class must define a
\method
{__
call
__
()
}
\item
[a class instance:]
The class must define a
\method
{__
call
__
()
}
method; the effect is then the same as if that method was called.
method; the effect is then the same as if that method was called.
\indexii
{
instance
}{
call
}
\indexii
{
instance
}{
call
}
\
ttindex
{__
call
__
}
\
withsubitem
{
(object method)
}{
\ttindex
{__
call
__
()
}
}
\end{description}
\end{description}
...
...
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