Heiko Wundram <me+python-dev at modelnine.org> wrote: > Don't get me wrong, I personally find this functionality very, very > interesting (I'm +0.5 on adding it in some way or another), > especially as a > part of the standard library (not necessarily as an extension to > .split()). It's already there. It's called shlex.split(), and follows the semantic of a standard UNIX shell, including escaping and other things. >>> import shlex >>> shlex.split(r"""Hey I\'m a "bad guy" for you""") ['Hey', "I'm", 'a', 'bad guy', 'for', 'you'] Giovanni Bajo
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