math - How to write \x in python without scape error -


kind of new in python enjoying much.

situation: i'm writing docstring of functions in python 2.7 encoding standard (ascii presume). have write \xi of course gives me escape error

problem: need write comments correctly interpreted restructured text (using rst2pdf example). moreover, math part of comments should in latex style later re-usage of code. mandatory since several reasons @ work place, math formulas in eventual final report must come directly surge code. usage of .. math:: \xi ideal since meets both needs, if not escape error

question: how avoid error? there way restructuredtext-compatible tell python ignore or interpret in special way doctest? or way rewrite without changing latex style math?

note: whatever possible modifier may use comments, these can have doctest necessary not interfere that.

thx, welcome, again kind of rookie here.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -