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 ethan.furman
Recipients Elizacat, ethan.furman, ezio.melotti, vstinner
Date 2015-04-24.06:03:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429855422.13.0.713300666696.issue24047@psf.upfronthosting.co.za>
In-reply-to
Content
We can already do

--> some_string.starts_with(('innie','minnie', 'minie', 'moe'))

Your proposal appears to be equivalent to:

--> 'test'.startswith(('a', 'b', 'c'))

How often do you check to see if a string starts with only a single character?

-1

tuple() is the correct solution to this problem.
History
Date User Action Args
2015-04-24 06:03:42ethan.furmansetrecipients: + ethan.furman, vstinner, ezio.melotti, Elizacat
2015-04-24 06:03:42ethan.furmansetmessageid: <1429855422.13.0.713300666696.issue24047@psf.upfronthosting.co.za>
2015-04-24 06:03:42ethan.furmanlinkissue24047 messages
2015-04-24 06:03:41ethan.furmancreate