Bug in shlex??
ockman at gmail.com
ockman at gmail.com
Thu Apr 3 19:34:26 EDT 2008
Gabriel...
I feel foolish...(and wish I had the two hours back I spent on
this). :)
Thank you so much!
> The result is a list containing a single string. The string contains 5
> characters: a single backslash, a question mark, three letters. The
> backslash is the escape character, as in '\n' (a single character,
> newline). A backslash by itself is represented (both by repr() and in
> string literals) by doubling it.
>
> If you print the value, you'll see a single \:
>
> print shlex.split("'\?foo'")[0]
>
> --
> Gabriel Genellina
More information about the Python-list
mailing list