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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to