This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年07月12日 19:16 by cool-RR, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (6) | |||
|---|---|---|---|
| msg140206 - (view) | Author: Ram Rachum (cool-RR) * | Date: 2011年07月12日 19:16 | |
Is there a good reason that `issubclass(collections.deque, collections.Sequence) == False`? What's not-sequence-y about `deque`? |
|||
| msg140214 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2011年07月12日 20:47 | |
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. |
|||
| msg140216 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2011年07月12日 23:08 | |
index() isn't supported. |
|||
| msg140588 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年07月18日 14:31 | |
> They don't support slicing, certainly, but I can't tell from the > collections ABC docs if Sequence is required to support slicing. 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? |
|||
| msg140642 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2011年07月19日 01:30 | |
Éric, this is not a doc bug. The sequence ABCs do not require slicing support. |
|||
| msg140656 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年07月19日 12:17 | |
> The sequence ABCs do not require slicing support. Understood, but is it said in the docs? David said that he couldn’t find that bit of info, which is why I suggested a doc bug. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:19 | admin | set | github: 56752 |
| 2011年07月19日 12:17:51 | eric.araujo | set | messages: + msg140656 |
| 2011年07月19日 01:30:38 | rhettinger | set | messages: + msg140642 |
| 2011年07月18日 14:31:28 | eric.araujo | set | nosy:
+ eric.araujo messages: + msg140588 |
| 2011年07月12日 23:08:34 | rhettinger | set | status: open -> closed assignee: rhettinger resolution: not a bug messages: + msg140216 |
| 2011年07月12日 20:47:49 | r.david.murray | set | nosy:
+ r.david.murray, rhettinger messages: + msg140214 |
| 2011年07月12日 19:16:10 | cool-RR | create | |