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
e37b4ed2
Commit
e37b4ed2
authored
Jul 15, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discuss calling new-style types.
Closes SF bug #453683.
parent
42d90161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Doc/ref/ref3.tex
Doc/ref/ref3.tex
+9
-1
No files found.
Doc/ref/ref3.tex
View file @
e37b4ed2
...
...
@@ -580,7 +580,15 @@ to the object denoted by \var{list}.
\obindex
{
method
}
\indexii
{
built-in
}{
method
}
\item
[Classes]
\item
[Class Types]
Class types, or ``new-style classes,'' are callable. These objects
normally act as factories for new instances of themselves, but
variations are possible for class types that override
\method
{__
new
__
()
}
. The arguments of the call are passed to
\method
{__
new
__
()
}
and, in the typical case, to
\method
{__
init
__
()
}
to
initialize the new instance.
\item
[Classic Classes]
Class objects are described below. When a class object is called,
a new class instance (also described below) is created and
returned. This implies a call to the class's
\method
{__
init
__
()
}
method
...
...
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