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
8ae8e6af
Commit
8ae8e6af
authored
May 20, 2018
by
Serhiy Storchaka
Committed by
GitHub
May 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)
parent
63536bd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Doc/reference/datamodel.rst
Doc/reference/datamodel.rst
+1
-1
Doc/whatsnew/3.6.rst
Doc/whatsnew/3.6.rst
+2
-1
No files found.
Doc/reference/datamodel.rst
View file @
8ae8e6af
...
...
@@ -1968,7 +1968,7 @@ current call is identified based on the first argument passed to the method.
be propagated up to the ``type.__new__`` call in order for the class to be
initialised correctly.
Failing to do so will result in a :exc:`DeprecationWarning` in Python 3.6,
and a :exc:`Runtime
Warning` in the future
.
and a :exc:`Runtime
Error` in Python 3.8
.
When using the default metaclass :class:`type`, or any metaclass that ultimately
calls ``type.__new__``, the following additional customisation steps are
...
...
Doc/whatsnew/3.6.rst
View file @
8ae8e6af
...
...
@@ -2261,7 +2261,8 @@ Changes in the Python API
direct references from methods to the implicit ``__class__`` closure
variable, the implicit ``__classcell__`` namespace entry must now be passed
up to ``type.__new__`` for initialisation. Failing to do so will result in
a :exc:`DeprecationWarning` in 3.6 and a :exc:`RuntimeWarning` in the future.
a :exc:`DeprecationWarning` in Python 3.6 and a :exc:`RuntimeError` in
Python 3.8.
Changes in the C API
--------------------
...
...
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