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
8fd02194
Kaydet (Commit)
8fd02194
authored
Tem 07, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
typos
üst
ab330d47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ref3.tex
Doc/ref/ref3.tex
+3
-3
ref3.tex
Doc/ref3.tex
+3
-3
No files found.
Doc/ref/ref3.tex
Dosyayı görüntüle @
8fd02194
...
@@ -375,7 +375,7 @@ Class objects are described below. When a class object is called as a
...
@@ -375,7 +375,7 @@ Class objects are described below. When a class object is called as a
function, a new class instance (also described below) is created and
function, a new class instance (also described below) is created and
returned. This implies a call to the class's
\verb
@
__init__
@
method
returned. This implies a call to the class's
\verb
@
__init__
@
method
if it has one. Any arguments are passed on to the
\verb
@
__init__
@
if it has one. Any arguments are passed on to the
\verb
@
__init__
@
method --- if there is
\verb
@
__init__
@
method, the class must be called
method --- if there is
no
\verb
@
__init__
@
method, the class must be called
without arguments.
without arguments.
\ttindex
{__
init
__}
\ttindex
{__
init
__}
\obindex
{
class
}
\obindex
{
class
}
...
@@ -629,7 +629,7 @@ the interpreter exits.
...
@@ -629,7 +629,7 @@ the interpreter exits.
Note that
\code
{
del x
}
doesn't directly call
\code
{
x.
__
del
__}
--- the
Note that
\code
{
del x
}
doesn't directly call
\code
{
x.
__
del
__}
--- the
former decrements the reference count for
\code
{
x
}
by one, but
former decrements the reference count for
\code
{
x
}
by one, but
\code
{
x
,
__
del
__}
is only called when its reference count reaches zero.
\code
{
x
.
__
del
__}
is only called when its reference count reaches zero.
\item
[{\tt __repr__(self)}]
\item
[{\tt __repr__(self)}]
Called by the
\verb
@
repr()
@
built-in function and by string conversions
Called by the
\verb
@
repr()
@
built-in function and by string conversions
...
@@ -666,7 +666,7 @@ and by the built-in function
...
@@ -666,7 +666,7 @@ and by the built-in function
\code
{
hash()
}
. Should return a 32-bit integer usable as a hash value
\code
{
hash()
}
. Should return a 32-bit integer usable as a hash value
for dictionary operations. The only required property is that objects
for dictionary operations. The only required property is that objects
which compare equal have the same hash value; it is advised to somehow
which compare equal have the same hash value; it is advised to somehow
mix together (e.g. using exclusi
ng
or) the hash values for the
mix together (e.g. using exclusi
ve
or) the hash values for the
components of the object that also play a part in comparison of
components of the object that also play a part in comparison of
objects. If a class does not define a
\code
{__
cmp
__}
method it should
objects. If a class does not define a
\code
{__
cmp
__}
method it should
not define a
\code
{__
hash
__}
operation either; if it defines
not define a
\code
{__
hash
__}
operation either; if it defines
...
...
Doc/ref3.tex
Dosyayı görüntüle @
8fd02194
...
@@ -375,7 +375,7 @@ Class objects are described below. When a class object is called as a
...
@@ -375,7 +375,7 @@ Class objects are described below. When a class object is called as a
function, a new class instance (also described below) is created and
function, a new class instance (also described below) is created and
returned. This implies a call to the class's
\verb
@
__init__
@
method
returned. This implies a call to the class's
\verb
@
__init__
@
method
if it has one. Any arguments are passed on to the
\verb
@
__init__
@
if it has one. Any arguments are passed on to the
\verb
@
__init__
@
method --- if there is
\verb
@
__init__
@
method, the class must be called
method --- if there is
no
\verb
@
__init__
@
method, the class must be called
without arguments.
without arguments.
\ttindex
{__
init
__}
\ttindex
{__
init
__}
\obindex
{
class
}
\obindex
{
class
}
...
@@ -629,7 +629,7 @@ the interpreter exits.
...
@@ -629,7 +629,7 @@ the interpreter exits.
Note that
\code
{
del x
}
doesn't directly call
\code
{
x.
__
del
__}
--- the
Note that
\code
{
del x
}
doesn't directly call
\code
{
x.
__
del
__}
--- the
former decrements the reference count for
\code
{
x
}
by one, but
former decrements the reference count for
\code
{
x
}
by one, but
\code
{
x
,
__
del
__}
is only called when its reference count reaches zero.
\code
{
x
.
__
del
__}
is only called when its reference count reaches zero.
\item
[{\tt __repr__(self)}]
\item
[{\tt __repr__(self)}]
Called by the
\verb
@
repr()
@
built-in function and by string conversions
Called by the
\verb
@
repr()
@
built-in function and by string conversions
...
@@ -666,7 +666,7 @@ and by the built-in function
...
@@ -666,7 +666,7 @@ and by the built-in function
\code
{
hash()
}
. Should return a 32-bit integer usable as a hash value
\code
{
hash()
}
. Should return a 32-bit integer usable as a hash value
for dictionary operations. The only required property is that objects
for dictionary operations. The only required property is that objects
which compare equal have the same hash value; it is advised to somehow
which compare equal have the same hash value; it is advised to somehow
mix together (e.g. using exclusi
ng
or) the hash values for the
mix together (e.g. using exclusi
ve
or) the hash values for the
components of the object that also play a part in comparison of
components of the object that also play a part in comparison of
objects. If a class does not define a
\code
{__
cmp
__}
method it should
objects. If a class does not define a
\code
{__
cmp
__}
method it should
not define a
\code
{__
hash
__}
operation either; if it defines
not define a
\code
{__
hash
__}
operation either; if it defines
...
...
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