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
f1dc3ee1
Kaydet (Commit)
f1dc3ee1
authored
Eki 13, 2013
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start
üst
ad9c9bb5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
6 deletions
+14
-6
collections.abc.rst
Doc/library/collections.abc.rst
+1
-1
_collections_abc.py
Lib/_collections_abc.py
+0
-0
__init__.py
Lib/collections/__init__.py
+3
-3
os.py
Lib/os.py
+1
-1
random.py
Lib/random.py
+1
-1
test_site.py
Lib/test/test_site.py
+5
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/collections.abc.rst
Dosyayı görüntüle @
f1dc3ee1
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
import itertools
import itertools
__name__ = '<doctest>'
__name__ = '<doctest>'
**Source code:** :source:`Lib/
collections/
abc.py`
**Source code:** :source:`Lib/
_collections_
abc.py`
--------------
--------------
...
...
Lib/
collections/
abc.py
→
Lib/
_collections_
abc.py
Dosyayı görüntüle @
f1dc3ee1
File moved
Lib/collections/__init__.py
Dosyayı görüntüle @
f1dc3ee1
...
@@ -3,9 +3,9 @@ __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList',
...
@@ -3,9 +3,9 @@ __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList',
# For backwards compatibility, continue to make the collections ABCs
# For backwards compatibility, continue to make the collections ABCs
# available through the collections module.
# available through the collections module.
from
collections.
abc
import
*
from
_collections_
abc
import
*
import
collections.
abc
import
_collections_
abc
__all__
+=
collections
.
abc
.
__all__
__all__
+=
_collections_
abc
.
__all__
from
_collections
import
deque
,
defaultdict
from
_collections
import
deque
,
defaultdict
from
operator
import
itemgetter
as
_itemgetter
,
eq
as
_eq
from
operator
import
itemgetter
as
_itemgetter
,
eq
as
_eq
...
...
Lib/os.py
Dosyayı görüntüle @
f1dc3ee1
...
@@ -631,7 +631,7 @@ def get_exec_path(env=None):
...
@@ -631,7 +631,7 @@ def get_exec_path(env=None):
# Change environ to automatically call putenv(), unsetenv if they exist.
# Change environ to automatically call putenv(), unsetenv if they exist.
from
collections.
abc
import
MutableMapping
from
_collections_
abc
import
MutableMapping
class
_Environ
(
MutableMapping
):
class
_Environ
(
MutableMapping
):
def
__init__
(
self
,
data
,
encodekey
,
decodekey
,
encodevalue
,
decodevalue
,
putenv
,
unsetenv
):
def
__init__
(
self
,
data
,
encodekey
,
decodekey
,
encodevalue
,
decodevalue
,
putenv
,
unsetenv
):
...
...
Lib/random.py
Dosyayı görüntüle @
f1dc3ee1
...
@@ -41,7 +41,7 @@ from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethod
...
@@ -41,7 +41,7 @@ from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethod
from
math
import
log
as
_log
,
exp
as
_exp
,
pi
as
_pi
,
e
as
_e
,
ceil
as
_ceil
from
math
import
log
as
_log
,
exp
as
_exp
,
pi
as
_pi
,
e
as
_e
,
ceil
as
_ceil
from
math
import
sqrt
as
_sqrt
,
acos
as
_acos
,
cos
as
_cos
,
sin
as
_sin
from
math
import
sqrt
as
_sqrt
,
acos
as
_acos
,
cos
as
_cos
,
sin
as
_sin
from
os
import
urandom
as
_urandom
from
os
import
urandom
as
_urandom
from
collections.
abc
import
Set
as
_Set
,
Sequence
as
_Sequence
from
_collections_
abc
import
Set
as
_Set
,
Sequence
as
_Sequence
from
hashlib
import
sha512
as
_sha512
from
hashlib
import
sha512
as
_sha512
__all__
=
[
"Random"
,
"seed"
,
"random"
,
"uniform"
,
"randint"
,
"choice"
,
"sample"
,
__all__
=
[
"Random"
,
"seed"
,
"random"
,
"uniform"
,
"randint"
,
"choice"
,
"sample"
,
...
...
Lib/test/test_site.py
Dosyayı görüntüle @
f1dc3ee1
...
@@ -445,6 +445,11 @@ class StartupImportTests(unittest.TestCase):
...
@@ -445,6 +445,11 @@ class StartupImportTests(unittest.TestCase):
self
.
assertNotIn
(
'locale'
,
modules
,
stderr
)
self
.
assertNotIn
(
'locale'
,
modules
,
stderr
)
# http://bugs.python.org/issue19209
# http://bugs.python.org/issue19209
self
.
assertNotIn
(
'copyreg'
,
modules
,
stderr
)
self
.
assertNotIn
(
'copyreg'
,
modules
,
stderr
)
# http://bugs.python.org/issue19218>
collection_mods
=
{
'_collections'
,
'collections'
,
'functools'
,
'heapq'
,
'itertools'
,
'keyword'
,
'operator'
,
'reprlib'
,
'types'
,
'weakref'
}
self
.
assertFalse
(
modules
.
intersection
(
re_mods
),
stderr
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
Misc/NEWS
Dosyayı görüntüle @
f1dc3ee1
...
@@ -42,6 +42,9 @@ Core and Builtins
...
@@ -42,6 +42,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #19218: Rename collections.abc to _collections_abc in order to
speed up interpreter start.
- Issue #18582: Add '
pbkdf2_hmac
' to the hashlib module. It implements PKCS#5
- Issue #18582: Add '
pbkdf2_hmac
' to the hashlib module. It implements PKCS#5
password-based key derivation functions with HMAC as pseudorandom function.
password-based key derivation functions with HMAC as pseudorandom function.
...
...
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