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
a61ae692
Kaydet (Commit)
a61ae692
authored
Mar 18, 2009
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use mixin methods where possible. (2.7 only -- these don't all exist in 3.0)
üst
06919a17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
collections.py
Lib/collections.py
+7
-18
No files found.
Lib/collections.py
Dosyayı görüntüle @
a61ae692
...
@@ -69,24 +69,13 @@ class OrderedDict(dict, MutableMapping):
...
@@ -69,24 +69,13 @@ class OrderedDict(dict, MutableMapping):
setdefault
=
MutableMapping
.
setdefault
setdefault
=
MutableMapping
.
setdefault
update
=
MutableMapping
.
update
update
=
MutableMapping
.
update
pop
=
MutableMapping
.
pop
pop
=
MutableMapping
.
pop
keys
=
MutableMapping
.
keys
def
keys
(
self
):
values
=
MutableMapping
.
values
return
list
(
self
.
__keys
)
items
=
MutableMapping
.
items
iterkeys
=
MutableMapping
.
iterkeys
def
values
(
self
):
itervalues
=
MutableMapping
.
itervalues
return
map
(
self
.
__getitem__
,
self
.
__keys
)
iteritems
=
MutableMapping
.
iteritems
__ne__
=
MutableMapping
.
__ne__
def
items
(
self
):
return
zip
(
self
.
__keys
,
self
.
values
())
def
iterkeys
(
self
):
return
iter
(
self
.
__keys
)
def
itervalues
(
self
):
return
_imap
(
self
.
__getitem__
,
self
.
__keys
)
def
iteritems
(
self
):
return
_izip
(
self
.
__keys
,
_imap
(
self
.
__getitem__
,
self
.
__keys
))
def
__repr__
(
self
):
def
__repr__
(
self
):
if
not
self
:
if
not
self
:
...
...
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