PyDocs

Nav

Unix-specific services

shlex.whitespace_split

shlex

attribute of shlex
If True, tokens will only be split in whitespaces. This is useful, for example, for parsing command lines with shlex, getting tokens in a similar way to shell arguments. When used in combination with punctuation_chars, tokens will be split on whitespace in addition to those characters.
Changed in 3.8
  • 3.8: The punctuation_chars attribute was made compatible with the whitespace_split attribute.
0 Examples
No examples for shlex/shlex.whitespace_split.
See Also
No see-alsos for shlex/shlex.whitespace_split
0 Notes
No notes for shlex.whitespace_split