Re: Raw Unicode docstring

2010-11-17 Thread Alexander Kapps
On 17.11.2010 06:14, John Machin wrote: On Nov 17, 9:34 am, Alexander Kapps wrote: >>> ur"Scheißt\nderBär\nim Wald?" Nicht ohne eine Genehmigung von der Umwelt Erhaltung Abteilung. The typical response around here is "Ja, aber nur wenn er Klopapier dabei hat." :-D -- http://mail.pyt

Re: Raw Unicode docstring

2010-11-17 Thread MRAB
On 17/11/2010 16:32, RJB wrote: On Nov 16, 1:56 pm, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have

Re: Raw Unicode docstring

2010-11-17 Thread Steve Holden
On 11/17/2010 11:32 AM, RJB wrote: > On Nov 16, 1:56 pm, Boštjan Mejak wrote: >> Hello, >> >> how does one write a raw unicode docstring? If I have backslashes in >> the docstring, I must tuck an 'r' in front of it, like this: >> r"""This

Re: Raw Unicode docstring

2010-11-17 Thread RJB
On Nov 16, 1:56 pm, Boštjan Mejak wrote: > Hello, > > how does one write a raw unicode docstring? If I have backslashes in > the docstring, I must tuck an 'r' in front of it, like this: > r"""This is a raw docstring.""" > > If I have

Re: Raw Unicode docstring

2010-11-16 Thread John Machin
On Nov 17, 9:34 am, Alexander Kapps wrote: >  >>> ur"Scheißt\nderBär\nim Wald?" Nicht ohne eine Genehmigung von der Umwelt Erhaltung Abteilung. -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw Unicode docstring

2010-11-16 Thread Alexander Kapps
On 16.11.2010 22:56, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have foreign letters in the docstring

Re: Raw Unicode docstring

2010-11-16 Thread Terry Reedy
On 11/16/2010 4:56 PM, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" You only need (and want that) if you w

Re: Raw Unicode docstring

2010-11-16 Thread Robert Kern
On 11/16/10 3:56 PM, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have foreign letters in the docstring

Re: Raw Unicode docstring

2010-11-16 Thread MRAB
On 16/11/2010 21:56, Boštjan Mejak wrote: Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have foreign letters in the docstring

Raw Unicode docstring

2010-11-16 Thread Boštjan Mejak
Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have foreign letters in the docstring, I must tuck a 'u' in front