-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add six.moves.collections.abc #155
Comments
Bumping this issue as Python 3.7 (once it release) may end up giving a deprecation warning for using classes from collections.abc in collections itself. Reference: python/cpython#5460 |
I'm 👍 on this request. With the removal of the Reference: urllib3/urllib3#1324 |
Python 3.3 moved various collections abstract base classes from `collections` to `collections.abc`, but also kept them available in `collections` for compatibility with Python 2. Python 3.8 will allow importing only from `collections.abc`. (`collections.abc` hasn't yet been added to six.moves; see benjaminp/six#155.)
Duplicate of #241 |
To add onto what @nickwilliams-eventbrite said, should #241 get accepted, GitHub will automatically close this issue as the PR's comment has "closes " in it. |
oh right, sorry, was quickly searching for #241, and ran into this in the search. |
Although, it is confusing that most of the discussion there is about whether this should be done at all (that discussion should be here, I think). |
This reverts commit 40d511e. > Traceback: > /usr/lib/python2.7/dist-packages/six.py:709: in exec_ > exec("""exec _code_ in _globs_, _locs_""") > tests/test_interfaces.py:13: in <module> > from univention.config_registry.interfaces import _Iface, Interfaces, forgiving, cmp_alnum # noqa E402 > python/univention/config_registry/__init__.py:33: in <module> > from univention.config_registry.backend import StrictModeException, SCOPE, ConfigRegistry # noqa F401 > python/univention/config_registry/backend.py:39: in <module> > from collections.abc import MutableMapping > E ImportError: No module named abc There is no six.moves.collections.abc yet: <benjaminp/six#155>
This reverts commit 40d511e. > Traceback: > /usr/lib/python2.7/dist-packages/six.py:709: in exec_ > exec("""exec _code_ in _globs_, _locs_""") > tests/test_interfaces.py:13: in <module> > from univention.config_registry.interfaces import _Iface, Interfaces, forgiving, cmp_alnum # noqa E402 > python/univention/config_registry/__init__.py:33: in <module> > from univention.config_registry.backend import StrictModeException, SCOPE, ConfigRegistry # noqa F401 > python/univention/config_registry/backend.py:39: in <module> > from collections.abc import MutableMapping > E ImportError: No module named abc There is no six.moves.collections.abc yet: <benjaminp/six#155>
This reverts commit 40d511e. > Traceback: > /usr/lib/python2.7/dist-packages/six.py:709: in exec_ > exec("""exec _code_ in _globs_, _locs_""") > tests/test_interfaces.py:13: in <module> > from univention.config_registry.interfaces import _Iface, Interfaces, forgiving, cmp_alnum # noqa E402 > python/univention/config_registry/__init__.py:33: in <module> > from univention.config_registry.backend import StrictModeException, SCOPE, ConfigRegistry # noqa F401 > python/univention/config_registry/backend.py:39: in <module> > from collections.abc import MutableMapping > E ImportError: No module named abc There is no six.moves.collections.abc yet: <benjaminp/six#155>
This reverts commit 40d511e. > Traceback: > /usr/lib/python2.7/dist-packages/six.py:709: in exec_ > exec("""exec _code_ in _globs_, _locs_""") > tests/test_interfaces.py:13: in <module> > from univention.config_registry.interfaces import _Iface, Interfaces, forgiving, cmp_alnum # noqa E402 > python/univention/config_registry/__init__.py:33: in <module> > from univention.config_registry.backend import StrictModeException, SCOPE, ConfigRegistry # noqa F401 > python/univention/config_registry/backend.py:39: in <module> > from collections.abc import MutableMapping > E ImportError: No module named abc There is no six.moves.collections.abc yet: <benjaminp/six#155>
This reverts commit 40d511e. > Traceback: > /usr/lib/python2.7/dist-packages/six.py:709: in exec_ > exec("""exec _code_ in _globs_, _locs_""") > tests/test_interfaces.py:13: in <module> > from univention.config_registry.interfaces import _Iface, Interfaces, forgiving, cmp_alnum # noqa E402 > python/univention/config_registry/__init__.py:33: in <module> > from univention.config_registry.backend import StrictModeException, SCOPE, ConfigRegistry # noqa F401 > python/univention/config_registry/backend.py:39: in <module> > from collections.abc import MutableMapping > E ImportError: No module named abc There is no six.moves.collections.abc yet: <benjaminp/six#155>
This reverts commit 40d511e. > Traceback: > /usr/lib/python2.7/dist-packages/six.py:709: in exec_ > exec("""exec _code_ in _globs_, _locs_""") > tests/test_interfaces.py:13: in <module> > from univention.config_registry.interfaces import _Iface, Interfaces, forgiving, cmp_alnum # noqa E402 > python/univention/config_registry/__init__.py:33: in <module> > from univention.config_registry.backend import StrictModeException, SCOPE, ConfigRegistry # noqa F401 > python/univention/config_registry/backend.py:39: in <module> > from collections.abc import MutableMapping > E ImportError: No module named abc There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: <benjaminp/six#155>
Originally reported by: Eklavya Sharma (Bitbucket: ekujupr, GitHub: Unknown)
I'm fed up of doing
A
six.moves.collections.abc
would be very convenient.The text was updated successfully, but these errors were encountered: