[docs] A trivial 2.7 documentation bug
ben med
mbmbrk at gmail.com
Wed Oct 20 00:40:38 CEST 2010
Hello,
I noticed a smaal documentation bug in python 2.7 documentation at
7.1. Fancier Output Formatting¶
<http://docs.python.org/tutorial/inputoutput.html#fancier-output-formatting>
in the first example :
>>> # The repr() of a string adds string quotes and backslashes:
...hello = 'hello, world\n'
>>> hellos = repr(hello)
>>> print hellos
'hello, world\n'
So the last line I quoted here must be "'hello, world\\n'" as explained
in the first line .
have a good day
Mohamed BEN MOHAMED
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20101019/33069d24/attachment.html>
More information about the docs
mailing list