[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-19 Thread Éric Araujo
Éric Araujo added the comment: > 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. -- ___ Python tracker

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Éric, this is not a doc bug. The sequence ABCs do not require slicing support. -- ___ Python tracker ___ __

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-18 Thread Éric Araujo
Éric Araujo added the comment: > 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

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: index() isn't supported. -- assignee: -> rhettinger resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-12 Thread R. David Murray
R. David Murray added the comment: 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. -- nosy: +r.david.murray, rhettinger ___

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-12 Thread Ram Rachum
New submission from Ram Rachum : Is there a good reason that `issubclass(collections.deque, collections.Sequence) == False`? What's not-sequence-y about `deque`? -- messages: 140206 nosy: cool-RR priority: normal severity: normal status: open title: `issubclass(collections.deque, collec