This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nicolasg
Recipients georg.brandl, nicolasg
Date 2009-08-18.12:38:32
SpamBayes Score 0.0002013411
Marked as misclassified No
Message-id <1250599114.63.0.456902579657.issue6723@psf.upfronthosting.co.za>
In-reply-to
Content
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 )
History
Date User Action Args
2009-08-18 12:38:34nicolasgsetrecipients: + nicolasg, georg.brandl
2009-08-18 12:38:34nicolasgsetmessageid: <1250599114.63.0.456902579657.issue6723@psf.upfronthosting.co.za>
2009-08-18 12:38:33nicolasglinkissue6723 messages
2009-08-18 12:38:33nicolasgcreate