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
5909b596
Commit
5909b596
authored
Mar 23, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make imported name private and wrap long-line.
parent
85ae6926
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Lib/collections.py
Lib/collections.py
+4
-3
No files found.
Lib/collections.py
View file @
5909b596
...
...
@@ -11,7 +11,7 @@ from operator import itemgetter as _itemgetter
from
keyword
import
iskeyword
as
_iskeyword
import
sys
as
_sys
import
heapq
as
_heapq
from
weakref
import
proxy
from
weakref
import
proxy
as
_proxy
from
itertools
import
repeat
as
_repeat
,
chain
as
_chain
,
starmap
as
_starmap
################################################################################
...
...
@@ -59,7 +59,7 @@ class OrderedDict(dict, MutableMapping):
root
=
self
.
__root
last
=
root
.
prev
link
.
prev
,
link
.
next
,
link
.
key
=
last
,
root
,
key
last
.
next
=
root
.
prev
=
proxy
(
link
)
last
.
next
=
root
.
prev
=
_
proxy
(
link
)
dict
.
__setitem__
(
self
,
key
,
value
)
def
__delitem__
(
self
,
key
):
...
...
@@ -127,7 +127,8 @@ class OrderedDict(dict, MutableMapping):
def
__eq__
(
self
,
other
):
if
isinstance
(
other
,
OrderedDict
):
return
len
(
self
)
==
len
(
other
)
and
all
(
p
==
q
for
p
,
q
in
zip
(
self
.
items
(),
other
.
items
()))
return
len
(
self
)
==
len
(
other
)
and
\
all
(
p
==
q
for
p
,
q
in
zip
(
self
.
items
(),
other
.
items
()))
return
dict
.
__eq__
(
self
,
other
)
...
...
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