[issue11162] Add tuple/list sep to string split method

2011-02-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Does this suggested 'improvement' make sense? Sorry, it doesn't make sense for a number of reasons. * First the str.split() is already too complex. It took years to get the docs for it to be correct and informative (two different algorithms, etc). * Se

[issue11162] Add tuple/list sep to string split method

2011-02-09 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- components: +Interpreter Core -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11162] Add tuple/list sep to string split method

2011-02-09 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : I was hoping that I could use a list/tuple of separators for the split method: "abcde".split(["b", "d"]) vs. import re re.split("b|d", "abcde") That's one extra LOC, and (worse still) forces me to learn regexp. Does this suggested 'impro