Skip to content

Tag: shlex

How to use a specific stop-character for shlex.split?

How to tell to shlex that if the character ; is found, then, don’t split anything anymore? Example: should give instead of [“hello”, “column number 2”, “foo”, “;”, “bar”, “baz”]. More generally, is there a way to define “comme…