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 <1509222941.83.0.213398074469.issue20047@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1509222941.83.0.213398074469.issue20047@psf.upfronthosting.co.za>
2017-10-28 20:35:41terry.reedylinkissue20047 messages
2017-10-28 20:35:41terry.reedycreate