[issue16728] Missing cross-reference in sequence glossary entry

2014-10-10 Thread R. David Murray
R. David Murray added the comment: Looks like this was left open for post-commit review, but since no one has objected (and it looks fine to me) I'm going to close it. -- nosy: +r.david.murray resolution: -> fixed stage: commit review -> resolved status: open -> closed ___

[issue16728] Missing cross-reference in sequence glossary entry

2014-02-16 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue16728] Missing cross-reference in sequence glossary entry

2014-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30d0816939a3 by Andrew Kuchling in branch '3.3': #16728: Mention collections.abc.Sequence in 'sequence' glossary entry http://hg.python.org/cpython/rev/30d0816939a3 -- nosy: +python-dev ___ Python tracker

[issue16728] Missing cross-reference in sequence glossary entry

2014-02-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a possible patch that mentions collections.abc.Sequence. I left out MutableSequence, because I couldn't see how to mention it without making the definition longer and more complicated. (It could be objected that this is the *glossary*, and is supposed

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread INADA Naoki
INADA Naoki added the comment: And nice symmetry with mapping entry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread INADA Naoki
INADA Naoki added the comment: So, I feel the 2nd meaning of "sequence" should be collections.abc.(Mutable)Sequence. "sequence types in stdlib" have richer API then the ABC. (e.g. comparison, +, *, etc...) They are "APIs that sequence may have" but not "APIs makes the type sequence."

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: No, that runs counter to the purpose of ABCs. If you have a type that is "good enough" for your purposes, then you can just register it. -- ___ Python tracker __

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread INADA Naoki
INADA Naoki added the comment: Thanks, Nick. I see that the "sequence" doesn't have strict definition. Though, I think collections.abc module's document should describe this manner. For example: "But checking type with these abc may be too strict for most case. For example, some user defined s

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: As Amaury notes, implicit ducktyping is not feasible for sequences or mappings, as the method names overlap - you have to add explicit semantic information to say which kind of container you're implementing. -- ___ Py

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: Many algorithms that require a sequence only need __len__ and __getitem__. The term "sequence" is used to distinguish such containers from mere iterables that only provide "__iter__" (and may be consumed by iteration). The glossary entry covers this use of the t