[issue8387] use universal newline mode in csv module examples

2020-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is no longer supported. -- nosy: +serhiy.storchaka resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue8387] use universal newline mode in csv module examples

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8387] use universal newline mode in csv module examples

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: @sfinnie can we please have a response to the question first asked by Antoine and repeated by Jessica, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8387

[issue8387] use universal newline mode in csv module examples

2014-04-25 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8387 ___ ___

[issue8387] use universal newline mode in csv module examples

2014-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that 'U' is a no-op under Python 3, it's just there for compatibility reasons; i.e. 'rU' is the same as 'r'. Also, from a quick glance, the CSV parser in _csv.c looks newline-agnostic. @sfinnie: can you explain which problems you encountered running the

[issue8387] use universal newline mode in csv module examples

2014-04-20 Thread Jessica McKellar
Jessica McKellar added the comment: I realized that I typo'd 2 instead of 3 in http://bugs.python.org/issue8387#msg216888 which makes that message confusing. Here's a restatement of my findings: * All of the Python 3 csv examples work in Python 3 on all platforms. * The Python 2 binary-mode

[issue8387] use universal newline mode in csv module examples

2014-04-19 Thread Jessica McKellar
Jessica McKellar added the comment: I ran some experiments to see what the state of the world is. I generated a test.csv by exporting a CSV file from Numbers on OSX. This generated a file with Windows-style \r\n-terminated lines. The attached test_csv.py tries to open this CSV file in binary

[issue8387] use universal newline mode in csv module examples

2014-04-19 Thread Jessica McKellar
Changes by Jessica McKellar jesst...@mit.edu: Added file: http://bugs.python.org/file34982/test.csv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8387 ___

[issue8387] use universal newline mode in csv module examples

2014-04-19 Thread Jessica McKellar
Jessica McKellar added the comment: All of the examples from https://docs.python.org/3/library/csv.html run without issue on OSX, though. In summary, the Python 2 examples error out on OSX and switching them to use 'U' instead of 'b' would fix this. I don't think any action needs to be taken

[issue8387] use universal newline mode in csv module examples

2014-04-19 Thread Mark Lawrence
Mark Lawrence added the comment: I think that it's complete nonsense to talk about binary csv files on Windows. They are just plain text files that can be manipulated with any old editor or a spreadsheet. -- nosy: +BreamoreBoy ___ Python tracker

[issue8387] use universal newline mode in csv module examples

2014-04-19 Thread R. David Murray
R. David Murray added the comment: The magic of newline='' in python3 is that it *preserves* the line end characters, which is the same thing binary mode does on windows. The place that matters, as I remember it, is when there is a newline embedded inside a quoted string. I don't remember

[issue8387] use universal newline mode in csv module examples

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8387 ___ ___ Python-bugs-list

[issue8387] use universal newline mode in csv module examples

2010-08-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In the current 2.7 docs, files are opened with 'rb' or 'wb'. In msg106210 of #1072404, RDM says The doc has been fixed;. I am not sure if this refers a change in the open or just removal of reference to non-working delimiter option. David? Any

[issue8387] use universal newline mode in csv module examples

2010-08-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The doc has been fixed refers to the fact that the lineterminator dialect option is now documented as applying only to writing, not to reading. The docs could certainly be improved to discuss using universal newline mode. I'm not clear

[issue8387] use universal newline mode in csv module examples

2010-07-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8387 ___ ___

[issue8387] use universal newline mode in csv module examples

2010-04-13 Thread sfinnie
New submission from sfinnie scott.fin...@gmail.com: Running the examples in the csv module docs (http://docs.python.org/library/csv.html) causes problems reading file on a mac. This is highlighted in issue 1072404 (http://bugs.python.org/issue1072404). Commentary on the bug indicates a no