[issue20047] bytearray partition bug
Terry J. Reedy
report at bugs.python.org
Sat Oct 28 16:35:41 EDT 2017
Terry J. Reedy <tjreedy at udel.edu> added the comment:
To answer Mark, even though no longer nosy: In general, sequence methods .count, .index, and .__contains__ take sequence members and only members as arguments. Unicode sequences are exceptional because codepoints are not Python objects, so string subsequences must be used instead. Byte-like sequences are also exceptional in that both members and subsequences are accepted for these methods.
String-like sequence methods .split and .partition take subsequences as arguments. I think the doc should make this clearer.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20047>
_______________________________________
More information about the Python-bugs-list
mailing list