[Python-ideas] list as parameter for the split function

Mike Miller python-ideas at mgmiller.net
Wed Sep 30 00:08:24 CEST 2015


+1 for the feature, given as a tuple.  Agreed with original, parent, and 
grandparent posts, have encountered this numerous times over the years.

Reaching for the re module and docs.python and/or stackoverflow to split a 
string (with two delimiters) feels like swatting a fly with a sledge-hammer. ;)

Conversely, I've not encountered the need as often with .startswith, which does 
support it.

-Mike


More information about the Python-ideas mailing list