Message91682
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 ) |
|
Date |
User |
Action |
Args |
2009-08-18 12:38:34 | nicolasg | set | recipients:
+ nicolasg, georg.brandl |
2009-08-18 12:38:34 | nicolasg | set | messageid: <1250599114.63.0.456902579657.issue6723@psf.upfronthosting.co.za> |
2009-08-18 12:38:33 | nicolasg | link | issue6723 messages |
2009-08-18 12:38:33 | nicolasg | create | |
|