[issue6723] csv.writer: example does not work
New submission from Nicolas Goutte nicolas.gou...@extragroup.de: 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: invalid syntax, as QUOTE_MINIMAL is not a global identifier. By replacing QUOTE_MINIMAL by csv.QUOTE_MINIMAL there is no syntax error anymore. I have discovered the issue with python 2.6.2. All online documentation version (2.6, 2.7, 3.1, 3.2) seem to have the same documentation (e.g. http://docs.python.org/library/csv.html ) -- assignee: georg.brandl components: Documentation messages: 91682 nosy: georg.brandl, nicolasg severity: normal status: open title: csv.writer: example does not work versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6723] csv.writer: example does not work
Skip Montanaro s...@pobox.com added the comment: Thanks for the report. Fixed for 2.6, 2.7, 3.0, 3.2. Can't seem to check out a 3.1 branch (tried release31-maint but was rebuffed by svn). -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6723] csv.writer: example does not work
Skip Montanaro s...@pobox.com added the comment: figured out my checkout problem. will have 3.1 fixed shortly. -- assignee: georg.brandl - skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6723] csv.writer: example does not work
Skip Montanaro s...@pobox.com added the comment: 3.1 corrected as well. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com