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.

Author terry.reedy
Recipients brett.cannon, ezio.melotti, georg.brandl, loewis, mark.dickinson, pitrou, serhiy.storchaka, terry.reedy
Date 2017-10-28.20:35:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2017-10-28 20:35:41terry.reedysetrecipients: + terry.reedy, loewis, brett.cannon, georg.brandl, mark.dickinson, pitrou, ezio.melotti, serhiy.storchaka
2017-10-28 20:35:41terry.reedysetmessageid: <>
2017-10-28 20:35:41terry.reedylinkissue20047 messages
2017-10-28 20:35:41terry.reedycreate