Right. In particular, if you have LaTeX code in your docstring, it should start with r""". For example, if the docstring starts with """ instead of r""", then '\to' will end up being converted to TAB (\t in a plain Python string is a tab) followed by 'o'.
John On Friday, May 13, 2016 at 11:29:15 AM UTC-7, David Roe wrote: > > Google for python raw strings. The main difference is how they treat > backslashes. > On May 13, 2016 09:34, "saad khalid" <saad...@gmail.com <javascript:>> > wrote: > >> Thanks for the help everyone. I've got it submitted here, hopefully I >> followed the procedure properly >> >> http://trac.sagemath.org/ticket/20595#comment:3 >> >> Also, sorry for this basic question but, when documenting a function, >> what is the purpose of starting it with r""" ? Is this some python >> convention I'm unaware of? What does it signify exactly? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+...@googlegroups.com <javascript:>. >> To post to this group, send email to sage-...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/sage-devel. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.