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
a8377182
Commit
a8377182
authored
Sep 12, 2010
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #9825: Remove __del__() from OrderedDict.
parent
d7ffbd0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Lib/collections.py
Lib/collections.py
+0
-3
Misc/NEWS
Misc/NEWS
+7
-0
No files found.
Lib/collections.py
View file @
a8377182
...
...
@@ -173,9 +173,6 @@ class OrderedDict(dict, MutableMapping):
all
(
_imap
(
_eq
,
self
.
iteritems
(),
other
.
iteritems
()))
return
dict
.
__eq__
(
self
,
other
)
def
__del__
(
self
):
self
.
clear
()
# eliminate cyclical references
################################################################################
### namedtuple
...
...
Misc/NEWS
View file @
a8377182
...
...
@@ -43,6 +43,13 @@ Core and Builtins
Library
-------
- Issue #9825: removed __del__ from the definition of collections.OrderedDict.
This prevents user-created self-referencing ordered dictionaries from
becoming permanently uncollectable GC garbage. The downside is that
removing __del__ means that the internal doubly-linked list has to wait for
GC collection rather than freeing memory immediately when the refcnt drops
to zero.
- Issue #9816: random.Random.jumpahead(n) did not produce a sufficiently
different internal state for small values of n. Fixed by salting the
value.
...
...
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