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
b55ce1e8
Kaydet (Commit)
b55ce1e8
authored
Nis 05, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed latex2html weirdness with footnotes.
üst
52e2d51e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
ref4.tex
Doc/ref/ref4.tex
+11
-11
ref5.tex
Doc/ref/ref5.tex
+4
-4
ref7.tex
Doc/ref/ref7.tex
+3
-3
No files found.
Doc/ref/ref4.tex
Dosyayı görüntüle @
b55ce1e8
...
...
@@ -70,12 +70,12 @@ bind the class or function name in the defining block), and targets
that are identifiers if occurring in an assignment,
\keyword
{
for
}
loop
header, or in the second position of an
\keyword
{
except
}
clause
header. Local names are searched only on the local namespace; global
names are searched only in the global and built-in
namespace.
%
%
\footnote
{
If the code block contains
\keyword
{
exec
}
statements or the
construct ``
\samp
{
from
\ldots
import *
}
'', the semantics of local
names change: local name lookup first searches the local namespace,
then the global
namespace and the built-in namespace.
}
names are searched only in the global and built-in
namespace.
\footnote
{
If the code block contains
\keyword
{
exec
}
statements or the construct
``
\samp
{
from
\ldots
import *
}
'', the semantics of local names change:
local name lookup first searches the local namespace, then the global
namespace and the built-in namespace.
}
A target occurring in a
\keyword
{
del
}
statement is also considered bound
for this purpose (though the actual semantics are to ``unbind'' the
...
...
@@ -159,11 +159,11 @@ it is used for both.
The built-in functions
\function
{
globals()
}
and
\function
{
locals()
}
returns a
dictionary representing the current global and local namespace,
respectively. The effect of modifications to this dictionary on the
namespace are undefined.
%
\footnote
{
The current implementations return the dictionary actually
used to implement the namespace,
\emph
{
except
}
for functions, wher
e
the optimizer may cause the local namespace to be implemented
differently,
and
\function
{
locals()
}
returns a read-only dictionary.
}
namespace are undefined.
\footnote
{
The current implementations return the dictionary actually used to
implement the namespace,
\emph
{
except
}
for functions, where th
e
optimizer may cause the local namespace to be implemented differently,
and
\function
{
locals()
}
returns a read-only dictionary.
}
\section
{
Exceptions
\label
{
exceptions
}}
...
...
Doc/ref/ref5.tex
Dosyayı görüntüle @
b55ce1e8
...
...
@@ -718,8 +718,8 @@ corresponding items.
\item
Mappings (dictionaries) are compared through lexicographic
comparison of their sorted (key, value) lists.
%
\footnote
{
This is expensive since it requires sorting the keys first,
comparison of their sorted (key, value) lists.
\footnote
{
This is expensive since it requires sorting the keys first,
but it is about the only sensible definition. An earlier version of
Python compared dictionaries by identity only, but this caused
surprises because people expected to be able to test a dictionary for
...
...
@@ -739,8 +739,8 @@ true if and only if there exists an index \var{i} such that
\code
{
\var
{
x
}
=
\var
{
y
}
[
\var
{
i
}
]
}
.
\code
{
\var
{
x
}
not in
\var
{
y
}}
yields the inverse truth value. The
exception
\exception
{
TypeError
}
is raised when
\var
{
y
}
is not a sequence,
or when
\var
{
y
}
is a string and
\var
{
x
}
is not a string of length
one.
%
\footnote
{
The latter restriction is sometimes a nuisance.
}
or when
\var
{
y
}
is a string and
\var
{
x
}
is not a string of length
one.
\footnote
{
The latter restriction is sometimes a nuisance.
}
\opindex
{
in
}
\opindex
{
not in
}
\indexii
{
membership
}{
test
}
...
...
Doc/ref/ref7.tex
Dosyayı görüntüle @
b55ce1e8
...
...
@@ -305,9 +305,9 @@ default value, the corresponding argument may be omitted from a call,
in which case the parameter's default value is substituted. If a
parameter has a default value, all following parameters must also have
a default value --- this is a syntactic restriction that is not
expressed by the grammar.
%
\footnote
{
Currently this is not checked; instead,
\code
{
def f(a=1, b)
}
is
interpreted as
\code
{
def f(a=1, b=None)
}
.
}
expressed by the grammar.
\footnote
{
Currently this is not checked; instead,
\code
{
def f(a=1, b)
}
is
interpreted as
\code
{
def f(a=1, b=None)
}
.
}
\indexiii
{
default
}{
parameter
}{
value
}
\strong
{
Default parameter values are evaluated when the function
...
...
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