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
f9b0cc7d
Commit
f9b0cc7d
authored
Jan 31, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document __module__.
parent
4f0dcc9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Doc/ref/ref3.tex
Doc/ref/ref3.tex
+11
-3
No files found.
Doc/ref/ref3.tex
View file @
f9b0cc7d
...
@@ -436,8 +436,10 @@ parameter list.
...
@@ -436,8 +436,10 @@ parameter list.
\obindex
{
user-defined function
}
\obindex
{
user-defined function
}
Special attributes:
\member
{
func
_
doc
}
or
\member
{__
doc
__}
is the
Special attributes:
\member
{
func
_
doc
}
or
\member
{__
doc
__}
is the
function's documentation string, or
None
if unavailable;
function's documentation string, or
\code
{
None
}
if unavailable;
\member
{
func
_
name
}
or
\member
{__
name
__}
is the function's name;
\member
{
func
_
name
}
or
\member
{__
name
__}
is the function's name;
\member
{__
module
__}
is the name of the module the function was defined
in, or
\code
{
None
}
if unavailable;
\member
{
func
_
defaults
}
is a tuple containing default argument values for
\member
{
func
_
defaults
}
is a tuple containing default argument values for
those arguments that have defaults, or
\code
{
None
}
if no arguments
those arguments that have defaults, or
\code
{
None
}
if no arguments
have a default value;
\member
{
func
_
code
}
is the code object representing
have a default value;
\member
{
func
_
code
}
is the code object representing
...
@@ -460,6 +462,7 @@ description of internal types below.
...
@@ -460,6 +462,7 @@ description of internal types below.
\ttindex
{
func
_
doc
}
\ttindex
{
func
_
doc
}
\ttindex
{__
doc
__}
\ttindex
{__
doc
__}
\ttindex
{__
name
__}
\ttindex
{__
name
__}
\ttindex
{__
module
__}
\ttindex
{__
dict
__}
\ttindex
{__
dict
__}
\ttindex
{
func
_
defaults
}
\ttindex
{
func
_
defaults
}
\ttindex
{
func
_
closure
}
\ttindex
{
func
_
closure
}
...
@@ -482,10 +485,14 @@ object, \member{im_func} is the function object;
...
@@ -482,10 +485,14 @@ object, \member{im_func} is the function object;
or the class that asked for the method for unbound methods);
or the class that asked for the method for unbound methods);
\member
{__
doc
__}
is the method's documentation (same as
\member
{__
doc
__}
is the method's documentation (same as
\code
{
im
_
func.
__
doc
__}
);
\member
{__
name
__}
is the method name (same as
\code
{
im
_
func.
__
doc
__}
);
\member
{__
name
__}
is the method name (same as
\code
{
im
_
func.
__
name
__}
).
\code
{
im
_
func.
__
name
__}
);
\member
{__
module
__}
is the name of the
module the method was defined in, or
\code
{
None
}
if unavailable.
\versionchanged
[
\member
{
im
_
self
}
used to refer to the class that
\versionchanged
[
\member
{
im
_
self
}
used to refer to the class that
defined the method]
{
2.2
}
defined the method]
{
2.2
}
\withsubitem
{
(method attribute)
}{
\withsubitem
{
(method attribute)
}{
\ttindex
{__
doc
__}
\ttindex
{__
name
__}
\ttindex
{__
module
__}
\ttindex
{
im
_
func
}
\ttindex
{
im
_
func
}
\ttindex
{
im
_
self
}}
\ttindex
{
im
_
self
}}
...
@@ -555,7 +562,8 @@ determined by the C function.
...
@@ -555,7 +562,8 @@ determined by the C function.
Special read-only attributes:
\member
{__
doc
__}
is the function's
Special read-only attributes:
\member
{__
doc
__}
is the function's
documentation string, or
\code
{
None
}
if unavailable;
\member
{__
name
__}
documentation string, or
\code
{
None
}
if unavailable;
\member
{__
name
__}
is the function's name;
\member
{__
self
__}
is set to
\code
{
None
}
(but see
is the function's name;
\member
{__
self
__}
is set to
\code
{
None
}
(but see
the next item).
the next item);
\member
{__
module
__}
is the name of the module the
function was defined in or
\code
{
None
}
if unavailable.
\obindex
{
built-in function
}
\obindex
{
built-in function
}
\obindex
{
function
}
\obindex
{
function
}
\indexii
{
C
}{
language
}
\indexii
{
C
}{
language
}
...
...
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