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
3eea25c3
Commit
3eea25c3
authored
Oct 16, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reword the text on the demise of __dynamic__ somewhat, correcting a
typo.
parent
a7e1f43b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Misc/NEWS
Misc/NEWS
+5
-4
No files found.
Misc/NEWS
View file @
3eea25c3
...
...
@@ -5,13 +5,14 @@ Release date: 28-Sep-2100
Type/class unification and new-style classes
- New-style classes are now always dynamic (except for built-in and
extension types). There
wa
s no longer a performance penalty, and I
extension types). There
i
s no longer a performance penalty, and I
no longer see another reason to keep this baggage around. One relic
remains: the __dict__ o
r a new-style class is a read-only proxy.
You must set the class's attribute to modify
. As a consequence, the
remains: the __dict__ o
f a new-style class is a read-only proxy; you
must set the class's attribute to modify it
. As a consequence, the
__defined__ attribute of new-style types no longer exists, for lack
of need: there is once again only one __dict__ (although in the
future a __cache__ may be resurrected in its place).
future a __cache__ may be resurrected with a similar function, if I
can prove that it actually speeds things up).
- C.__doc__ now works as expected for new-style classes (in 2.2a4 it
always returned None, even when there was a class docstring).
...
...
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