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
issubclass(collections.deque, collections.Sequence) == False
#56752
Comments
Is there a good reason that |
Maybe they don't support all Sequence operations? They don't support slicing, certainly, but I can't tell from the collections ABC docs if Sequence is required to support slicing. |
index() isn't supported. |
This looks like a 2.7 docs bug. The table with ABCs mentions __*item__, but not __*slice__, probably because it was written with 3.x in mind (where slices are a type of __*item__). Do you think we need to improve the documentation for slicing, in general and with regards to collections ABCs? |
Éric, this is not a doc bug. The sequence ABCs do not require slicing support. |
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: