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
5f8ed5e7
Commit
5f8ed5e7
authored
Apr 08, 2014
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Better wording for __objclass__ docs. Issue #19281
parent
f8f89b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Doc/reference/datamodel.rst
Doc/reference/datamodel.rst
+6
-6
No files found.
Doc/reference/datamodel.rst
View file @
5f8ed5e7
...
@@ -1467,12 +1467,12 @@ class' :attr:`__dict__`.
...
@@ -1467,12 +1467,12 @@ class' :attr:`__dict__`.
Called to delete the attribute on an instance *instance* of the owner class.
Called to delete the attribute on an instance *instance* of the owner class.
The
:attr:`__objclass__` is interpreted by the :mod:`inspect` module as
The
attribute :attr:`__objclass__` is interpreted by the :mod:`inspect` module
specifying the class where this object was defined (setting this appropriately
as specifying the class where this object was defined (setting this
can assist in runtime introspection of dynamic class attributes). For callables,
appropriately can assist in runtime introspection of dynamic class attributes).
it may indicate that an instance of the given type (or a subclass) is expected
For callables, it may indicate that an instance of the given type (or a
or required as the first positional argument (for example, CPython sets this
subclass) is expected or required as the first positional argument (for example,
attribute for unbound methods that are implemented in C).
CPython sets this
attribute for unbound methods that are implemented in C).
.. _descriptor-invocation:
.. _descriptor-invocation:
...
...
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