mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
Issue #9825: Remove __del__() from OrderedDict.
This commit is contained in:
parent
a1f74816f5
commit
2039753a9a
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue