Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Python - Split a string by spaces — preserving quoted substrings

>>> import shlex
>>> shlex.split('this is "a test"')
['this', 'is', 'a test']