kind of new in python but enjoying it very much.
Situation: I'm writing the docstring of my functions in Python 2.7 encoding standard (ASCII i presume). I have to write \xi which of course gives me the escape error
Problem: I need to write comments which are correctly interpreted as restructured text (using rst2pdf for example). Moreover, the math part of the comments should be in latex style for later re-usage of the code. This is mandatory since for several reasons at my work place, math formulas in the eventual final report must come directly from the surge code. The usage of .. math:: \xi would be ideal since it meets both needs, if it not were for the escape error
Question: How to avoid this error? Is there a way restructuredtext-compatible to tell python to ignore or interpret in a special way the doctest? Or any way to rewrite this but without changing the latex style for the math?
Note: whatever possible modifier may be use for the comments, these can have doctest as well so is necessary to not interfere with that.
THX, any help is welcome, again kind of rookie here.