[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Nicolas Goutte
Changes by Nicolas Goutte : Added file: http://bugs.python.org/file23841/windows_1252ok.py ___ Python tracker <http://bugs.python.org/issue13525> ___ ___ Python-bug

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Nicolas Goutte
New submission from Nicolas Goutte : Current Behaviour The tutorial of Python 3.2.x has an example to set an encoding in a source file: http://docs.python.org/py3k/tutorial/interpreter.html#source-code-encoding It explains to set the following line at the start of the source code

[issue6723] csv.writer: example does not work

2009-08-18 Thread Nicolas Goutte
New submission from Nicolas Goutte : In the documentation for csv.writer, the example spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ', quotechar='|', quoting=QUOTE_MINIMAL) does not work, as Python complains about "SyntaxError: inva

[issue5751] Typo in documentation of print function parameters

2009-04-14 Thread Nicolas Goutte
New submission from Nicolas Goutte : In http://docs.python.org/library/functions.html#print the print function is documented to have a parameter named end with a default 'n'. However the default should be '\n' as documented in Python 3 ( http://docs.python.org/3.0/library/