Thomas,

> Recall that doctest doesn't parse the code, it extracts the docstrings. And 
> docstrings are just strings, and are parsed like strings.

I understand what you're saying, but I'm struggling with how to
represent the following strings in doctest code and doctest results. No
matter what combination of backslashes or raw strings I use, I am unable
to find a way to code the following.

>>> encode( '", \, \t, \n' )
'\", \\, \\t, \\n'

Thank you,
Malcolm
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to