[issue11162] Add tuple/list sep to string split method
Raymond Hettinger
report at bugs.python.org
Wed Feb 9 21:08:30 CET 2011
Raymond Hettinger <rhettinger at users.sourceforge.net> 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).
* Second, it would overly complicate the implementation and preclude various kinds of string search optimizations (i.e. that is why fgrep, grep, and egrep are still separate).
* Third, at some point, when you need a regex, you just need to use a regex. It would be a mistake to reinvent regex capabilities in string objects.
----------
nosy: +rhettinger
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11162>
_______________________________________
More information about the Python-bugs-list
mailing list