[issue5332] csv sniffer

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5332 ___ ___ Python-bugs-list

[issue5332] csv sniffer

2010-05-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is in fact a doc bug. The correct way to read a csv file in python3 is to open it in text mode with newline=''. The docs have been updated to reflect this. -- nosy: +r.david.murray resolution: - out of date stage: needs

[issue5332] csv sniffer

2009-02-25 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I verified the bug. I started to work on a patch (see attached), but it quickly seems to get out-of-hand with tracebacks about stuff not supporting the buffer API. I suspect the real solution might involve doing something to convert the bytes to

[issue5332] csv sniffer

2009-02-20 Thread David W. Lambert
New submission from David W. Lambert lamber...@corning.com: Following instructions in http://docs.python.org/dev/3.0/library/csv.html#module-csv I opened file in binary mode. This might be simply a documentation problem or it may run deeper. Text mode works on red hat linux system. Here's the