We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
collections.abc
install_aliases
I want to do isinstance(obj, Iterable).
isinstance(obj, Iterable)
In Python 2: from collections import Iterable
from collections import Iterable
In Python 3: from collections.abc import Iterable
from collections.abc import Iterable
But, collections.abc isn't part of future.standard_library.install_aliases. Could it be?
future.standard_library.install_aliases
Not sure it's helpful, but there's an open PR to add it to six.moves: benjaminp/six#241
six.moves
The text was updated successfully, but these errors were encountered:
Here's another implementation:
https://github.com/jaraco/jaraco.compat/blob/master/py33compat/collections/abc.py
After pip install jaraco.compat:
pip install jaraco.compat
from py33compat.collections.abc import Iterable
Sorry, something went wrong.
No branches or pull requests
I want to do
isinstance(obj, Iterable)
.In Python 2:
from collections import Iterable
In Python 3:
from collections.abc import Iterable
But,
collections.abc
isn't part offuture.standard_library.install_aliases
. Could it be?Not sure it's helpful, but there's an open PR to add it to
six.moves
: benjaminp/six#241The text was updated successfully, but these errors were encountered: