How do you put a backslash in a documentation string for a function? def function(x, str=''): r""" The string str could be a LaTeX command like '\vspace{3em}'. """ return None
If I type 'function?', I get The string str could be a LaTeX command like 'vspace{3em}'. Note that the backslash is not printed, but I want it to be. I've tried various permutations with \ vs. \\, and with r""" vs. """ at the beginning of the doc string, but I have had no luck. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---