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
1c330eb9
Kaydet (Commit)
1c330eb9
authored
Tem 02, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch [ 1230615 ] Patch for (Doc) #1168746
Bug [ 1204734 ] incorrect description of __getattribute__
üst
452b6834
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
ref3.tex
Doc/ref/ref3.tex
+14
-11
No files found.
Doc/ref/ref3.tex
Dosyayı görüntüle @
1c330eb9
...
...
@@ -604,7 +604,7 @@ cause the function to execute until it provides a value using the
have reached the end of the set of values to be returned.
\item
[Built-in functions]
A built-in function object is a wrapper around a
\C
{}
function. Examples
A built-in function object is a wrapper around a
C
function. Examples
of built-in functions are
\function
{
len()
}
and
\function
{
math.sin()
}
(
\module
{
math
}
is a standard built-in module).
The number and type of the arguments are
...
...
@@ -917,14 +917,16 @@ the code object).
\ttindex
{
f
_
builtins
}
\ttindex
{
f
_
restricted
}}
Special writable attributes:
\member
{
f
_
trace
}
, if not
\code
{
None
}
, is a
function called at the start of each source code line (this is used by
the debugger);
\member
{
f
_
exc
_
type
}
,
\member
{
f
_
exc
_
value
}
,
\member
{
f
_
exc
_
traceback
}
represent the most recent exception caught in
this frame;
\member
{
f
_
lineno
}
is the current line number of the frame
--- writing to this from within a trace function jumps to the given line
(only for the bottom-most frame). A debugger can implement a Jump
command (aka Set Next Statement) by writing to f
_
lineno.
Special writable attributes:
\member
{
f
_
trace
}
, if not
\code
{
None
}
, is
a function called at the start of each source code line (this is used
by the debugger);
\member
{
f
_
exc
_
type
}
,
\member
{
f
_
exc
_
value
}
,
\member
{
f
_
exc
_
traceback
}
represent the last exception raised in the
parent frame provided another exception was ever raised in the current
frame (in all other cases they are None);
\member
{
f
_
lineno
}
is the
current line number of the frame --- writing to this from within a
trace function jumps to the given line (only for the bottom-most
frame). A debugger can implement a Jump command (aka Set Next
Statement) by writing to f
_
lineno.
\withsubitem
{
(frame attribute)
}{
\ttindex
{
f
_
trace
}
\ttindex
{
f
_
exc
_
type
}
...
...
@@ -1335,8 +1337,9 @@ The following methods only apply to new-style classes.
\begin{methoddesc}
[object]
{__
getattribute
__}{
self, name
}
Called unconditionally to implement attribute accesses for instances
of the class. If the class also defines
\method
{__
getattr
__}
, it will
never be called (unless called explicitly).
of the class. If the class also defines
\method
{__
getattr
__}
, the latter
will not be called unless
\method
{__
getattribute
__
()
}
either calls it
explicitly or raises an
\exception
{
AttributeError
}
.
This method should return the (computed) attribute
value or raise an
\exception
{
AttributeError
}
exception.
In order to avoid infinite recursion in this method, its
...
...
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