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
455dc258
Commit
455dc258
authored
May 06, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
note that descriptor objects must be instances of new-style types
(closes SF bug #817742)
parent
63d35311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Doc/ref/ref3.tex
Doc/ref/ref3.tex
+2
-1
No files found.
Doc/ref/ref3.tex
View file @
455dc258
...
...
@@ -1296,7 +1296,8 @@ containing the method (a so-called \emph{descriptor} class) appears in
the class dictionary of another new-style class, known as the
\emph
{
owner
}
class. In the examples below, ``the attribute'' refers to
the attribute whose name is the key of the property in the owner
class'
\code
{__
dict
__}
.
class'
\code
{__
dict
__}
. Descriptors can only be implemented as
new-style classes themselves.
\begin{methoddesc}
[object]
{__
get
__}{
self, instance, owner
}
Called to get the attribute of the owner class (class attribute access)
...
...
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