[issue5332] csv sniffer

2010-05-20 Thread R. David Murray
R. David Murray 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 patch -> committed/re

[issue5332] csv sniffer

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5332] csv sniffer

2009-02-25 Thread Skip Montanaro
Skip Montanaro 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 strings read w

[issue5332] csv sniffer

2009-02-20 Thread David W. Lambert
New submission from David W. Lambert : 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 use: >>> stream=open