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
d0421dd4
Commit
d0421dd4
authored
Aug 24, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoking --> speaking
object whose method this is --> object on which the method operates
parent
ab076fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+7
-7
No files found.
Doc/lib/libstdtypes.tex
View file @
d0421dd4
...
...
@@ -593,7 +593,7 @@ The only special operation on a module is attribute access:
\code
{
\var
{
m
}
.
\var
{
name
}}
, where
\var
{
m
}
is a module and
\var
{
name
}
accesses a name defined in
\var
{
m
}
's symbol table. Module attributes
can be assigned to. (Note that the
\code
{
import
}
statement is not,
strictly sp
o
king, an operation on a module object;
\code
{
import
strictly sp
ea
king, an operation on a module object;
\code
{
import
\var
{
foo
}}
does not require a module object named
\var
{
foo
}
to exist,
rather it requires an (external)
\emph
{
definition
}
for a module named
\var
{
foo
}
somewhere.)
...
...
@@ -641,12 +641,12 @@ lists) and class instance methods. Built-in methods are described
with the types that support them.
The implementation adds two special read-only attributes to class
instance methods:
\code
{
\var
{
m
}
.im
_
self
}
is the object
whose method this
is, and
\code
{
\var
{
m
}
.im
_
func
}
is the function implementing the method.
Calling
\code
{
\var
{
m
}
(
\var
{
arg-1
}
,
\var
{
arg-2
}
,
{
\rm
\ldots
}
,
\var
{
arg-
n
}
)
}
is completely equivalent to calling
\code
{
\var
{
m
}
.im
_
func(
\var
{
m
}
.im
_
self,
\var
{
arg-1
}
,
\var
{
arg-2
}
,
{
\rm
\ldots
}
,
\var
{
arg-n
}
)
}
.
instance methods:
\code
{
\var
{
m
}
.im
_
self
}
is the object
on which the
method operates, and
\code
{
\var
{
m
}
.im
_
func
}
is the function
implementing the method. Calling
\code
{
\var
{
m
}
(
\var
{
arg-1
}
,
\var
{
arg-
2
}
,
{
\rm
\ldots
}
,
\var
{
arg-n
}
)
}
is completely equivalent to
calling
\code
{
\var
{
m
}
.im
_
func(
\var
{
m
}
.im
_
self,
\var
{
arg-1
}
,
\
var
{
arg-2
}
,
{
\rm
\
ldots
}
,
\var
{
arg-n
}
)
}
.
See the
\emph
{
Python Reference Manual
}
for more information.
...
...
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