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
f755432f
Kaydet (Commit)
f755432f
authored
Agu 21, 2005
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF bug #1168135: Python 2.5a0 Tutorial errors and observations
(Contributed by Michael R Bax.)
üst
6cd5377c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
glossary.tex
Doc/tut/glossary.tex
+13
-16
No files found.
Doc/tut/glossary.tex
Dosyayı görüntüle @
f755432f
...
...
@@ -24,9 +24,9 @@ Rossum}{http://www.python.org/\textasciitilde{}guido/}, Python's creator.
\index
{
byte code
}
\item
[byte code]
The internal representation of a Python program in the interpreter.
The byte code is also cached in
the
\code
{
.pyc
}
and
\code
{
.pyo
}
The byte code is also cached in
\code
{
.pyc
}
and
\code
{
.pyo
}
files so that executing the same file is faster the second time
(
compilation from source to byte code can be sav
ed). This
(
recompilation from source to byte code can be avoid
ed). This
``intermediate language'' is said to run on a ``virtual
machine'' that calls the subroutines corresponding to each bytecode.
...
...
@@ -37,7 +37,6 @@ Any class which does not inherit from \class{object}. See
\index
{
coercion
}
\item
[coercion]
The implicit conversion of an instance of one type to another during an
operation which involves two arguments of the same type. For example,
{}
\code
{
int(3.15)
}
converts the floating point number to the integer
...
...
@@ -53,7 +52,6 @@ same value by the programmer, e.g., {}\code{float(3)+4.5} rather than just
\index
{
complex number
}
\item
[complex number]
An extension of the familiar real number system in which all numbers are
expressed as a sum of a real part and an imaginary part. Imaginary numbers
are real multiples of the imaginary unit (the square root of
{}
\code
{
-1
}
),
...
...
@@ -117,7 +115,7 @@ by executing:
from
__
future
__
import division
\end{verbatim}
the expression
\code
{
11/4
}
would evaluate to
\code
{
2.75
}
. By
actually
the expression
\code
{
11/4
}
would evaluate to
\code
{
2.75
}
. By
importing the
\ulink
{
\module
{__
future
__}}{
../lib/module-future.html
}
module and evaluating its variables, you can see when a new feature
was first added to the language and when it will become the default:
...
...
@@ -249,6 +247,13 @@ pass it to the \function{iter()} function or use it in a
return the same exhausted iterator object used in the previous iteration
pass, making it appear like an empty container.
\index
{
LBYL
}
\item
[LBYL]
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts
with the
\emph
{
EAFP
}
approach and is characterized by the presence of
many
\keyword
{
if
}
statements.
\index
{
list comprehension
}
\item
[list comprehension]
A compact way to process all or a subset of elements in a sequence and
...
...
@@ -258,14 +263,6 @@ containing hex numbers (0x..) that are even and in the range from 0 to 255.
The
\keyword
{
if
}
clause is optional. If omitted, all elements in
{}
\code
{
range(256)
}
are processed.
\index
{
LBYL
}
\item
[LBYL]
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts
with the
\emph
{
EAFP
}
approach and is characterized by the presence of
many
\keyword
{
if
}
statements.
\index
{
mapping
}
\item
[mapping]
A container object (such as
\class
{
dict
}
) that supports arbitrary key
...
...
@@ -293,11 +290,11 @@ See also \emph{immutable}.
\item
[namespace]
The place where a variable is stored. Namespaces are implemented as
dictionaries. There are the local, global and builtin namespaces
as well asnested namespaces in objects (in methods). Namespaces support
as well as
nested namespaces in objects (in methods). Namespaces support
modularity by preventing naming conflicts. For instance, the
functions
\function
{__
builtin
__
.open()
}
and
\function
{
os.open()
}
are
distinguished by their namespaces. Namespaces also aid readability
and maintainability by making it clear which module
s implement
a
and maintainability by making it clear which module
implements
a
function. For instance, writing
\function
{
random.seed()
}
or
{}
\function
{
itertools.izip()
}
makes it clear that those functions are
implemented by the
\ulink
{
\module
{
random
}}{
../lib/module-random.html
}
...
...
@@ -324,7 +321,7 @@ classes can use Python's newer, versatile features like
\index
{
Python3000
}
\item
[Python3000]
A mythical python release, not required be backward compatible, with
A mythical python release, not required
to
be backward compatible, with
telepathic interface.
\index
{__
slots
__}
...
...
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