david abrahams wrote: > There's a reason to pursue the OP's expected result as opposed to just > settling for list("funny"). If we pick a reasonable behavior for this > case, it will save some number of people from having to write: > > if len(sep): > divided = s.split(sep) > else: > divided = list(s) (where the number is very close to zero, and where number times the time needed to type in the above workaround is much less than the amount of time you've all wasted by contributing to this thread) btw, here's another data point: >>> import re >>> re.split("", "funny") ['funny'] </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4