Message241915
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. |
|
Date |
User |
Action |
Args |
2015-04-24 06:03:42 | ethan.furman | set | recipients:
+ ethan.furman, vstinner, ezio.melotti, Elizacat |
2015-04-24 06:03:42 | ethan.furman | set | messageid: <1429855422.13.0.713300666696.issue24047@psf.upfronthosting.co.za> |
2015-04-24 06:03:42 | ethan.furman | link | issue24047 messages |
2015-04-24 06:03:41 | ethan.furman | create | |
|