Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1c330eb9
Commit
1c330eb9
authored
Jul 02, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch [ 1230615 ] Patch for (Doc) #1168746
Bug [ 1204734 ] incorrect description of __getattribute__
parent
452b6834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
Doc/ref/ref3.tex
Doc/ref/ref3.tex
+14
-11
No files found.
Doc/ref/ref3.tex
View file @
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