Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e5b78563
Kaydet (Commit)
e5b78563
authored
Mar 23, 2009
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make imported name private and wrap long-line.
üst
0b666bfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
collections.py
Lib/collections.py
+4
-3
No files found.
Lib/collections.py
Dosyayı görüntüle @
e5b78563
...
@@ -10,7 +10,7 @@ from operator import itemgetter as _itemgetter, eq as _eq
...
@@ -10,7 +10,7 @@ from operator import itemgetter as _itemgetter, eq as _eq
from
keyword
import
iskeyword
as
_iskeyword
from
keyword
import
iskeyword
as
_iskeyword
import
sys
as
_sys
import
sys
as
_sys
import
heapq
as
_heapq
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
,
\
from
itertools
import
repeat
as
_repeat
,
chain
as
_chain
,
starmap
as
_starmap
,
\
ifilter
as
_ifilter
,
imap
as
_imap
,
izip
as
_izip
ifilter
as
_ifilter
,
imap
as
_imap
,
izip
as
_izip
...
@@ -59,7 +59,7 @@ class OrderedDict(dict, MutableMapping):
...
@@ -59,7 +59,7 @@ class OrderedDict(dict, MutableMapping):
root
=
self
.
__root
root
=
self
.
__root
last
=
root
.
prev
last
=
root
.
prev
link
.
prev
,
link
.
next
,
link
.
key
=
last
,
root
,
key
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
)
dict
.
__setitem__
(
self
,
key
,
value
)
def
__delitem__
(
self
,
key
):
def
__delitem__
(
self
,
key
):
...
@@ -131,7 +131,8 @@ class OrderedDict(dict, MutableMapping):
...
@@ -131,7 +131,8 @@ class OrderedDict(dict, MutableMapping):
def
__eq__
(
self
,
other
):
def
__eq__
(
self
,
other
):
if
isinstance
(
other
,
OrderedDict
):
if
isinstance
(
other
,
OrderedDict
):
return
len
(
self
)
==
len
(
other
)
and
all
(
_imap
(
_eq
,
self
.
items
(),
other
.
items
()))
return
len
(
self
)
==
len
(
other
)
and
\
all
(
_imap
(
_eq
,
self
.
iteritems
(),
other
.
iteritems
()))
return
dict
.
__eq__
(
self
,
other
)
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