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
e6d34215
Unverified
Kaydet (Commit)
e6d34215
authored
Ock 29, 2018
tarafından
Raymond Hettinger
Kaydeden (comit)
GitHub
Ock 29, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-25988: Deprecate exposing collections.abc in collections GH-5414
üst
4f4ef0ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
collections.rst
Doc/library/collections.rst
+2
-2
3.7.rst
Doc/whatsnew/3.7.rst
+5
-0
__init__.py
Lib/collections/__init__.py
+7
-3
2018-01-28-23-48-45.bpo-25988.I9uBct.rst
...S.d/next/Library/2018-01-28-23-48-45.bpo-25988.I9uBct.rst
+2
-0
No files found.
Doc/library/collections.rst
Dosyayı görüntüle @
e6d34215
...
...
@@ -35,8 +35,8 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
.. versionchanged:: 3.3
Moved :ref:`collections-abstract-base-classes` to the :mod:`collections.abc` module.
For backwards compatibility, they continue to be visible in this module
as well
.
For backwards compatibility, they continue to be visible in this module
through
Python 3.7. Subsequently, they will be removed entirely
.
:class:`ChainMap` objects
...
...
Doc/whatsnew/3.7.rst
Dosyayı görüntüle @
e6d34215
...
...
@@ -880,6 +880,11 @@ Other CPython Implementation Changes
Deprecated
==========
* In Python 3.8, the abstract base classes in :mod:`collections.abc` will no
longer be exposed in the regular :mod:`collections` module. This will help
create a clearer distinction between the concrete classes and the abstract
base classes.
* Yield expressions (both ``yield`` and ``yield from`` clauses) are now deprecated
in comprehensions and generator expressions (aside from the iterable expression
in the leftmost :keyword:`for` clause). This ensures that comprehensions
...
...
Lib/collections/__init__.py
Dosyayı görüntüle @
e6d34215
...
...
@@ -18,10 +18,14 @@ __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList',
'UserString'
,
'Counter'
,
'OrderedDict'
,
'ChainMap'
]
# For backwards compatibility, continue to make the collections ABCs
# available through the collections module.
from
_collections_abc
import
*
#
through Python 3.6
available through the collections module.
# Note, no new collections ABCs were added in Python 3.7
import
_collections_abc
__all__
+=
_collections_abc
.
__all__
from
_collections_abc
import
(
AsyncGenerator
,
AsyncIterable
,
AsyncIterator
,
Awaitable
,
ByteString
,
Callable
,
Collection
,
Container
,
Coroutine
,
Generator
,
Hashable
,
ItemsView
,
Iterable
,
Iterator
,
KeysView
,
Mapping
,
MappingView
,
MutableMapping
,
MutableSequence
,
MutableSet
,
Reversible
,
Sequence
,
Set
,
Sized
,
ValuesView
)
from
operator
import
itemgetter
as
_itemgetter
,
eq
as
_eq
from
keyword
import
iskeyword
as
_iskeyword
...
...
Misc/NEWS.d/next/Library/2018-01-28-23-48-45.bpo-25988.I9uBct.rst
0 → 100644
Dosyayı görüntüle @
e6d34215
Deprecate exposing the contents of collections.abc in the regular
collections module.
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