Previously, the doctest documentation suggested the use of double backslashes for backslashes in docstrings. This patch updates the documentation to suggest the use of raw strings instead (but still notes that double backslashes are an option). Raw strings typically lead to docstrings that are much less error prone and easier to read & maintain than double backslashing. Especially it the backslashes are in some complex string (such as a regular expression). The patch was made against revision 1.33 of doctest.py and revision 1.19 of libdoctest.tex
Logged In: YES user_id=21627 Thanks for the patch. Applied as libdoctest.tex 1.20 doctest.py 1.34 Please include path names in the chunks of the patch. This is best done by invoking "cvs diff" from the toplevel directory. That way, the patch can be applied with "patch -p0", instead of splitting it into multiple files again, and applying each chunk separately.