[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread G Young

G Young added the comment:

Second time around does the charm. I see the hidden "-" in the scientific 
notation is causing this. Thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread G Young

G Young added the comment:

That doesn't make sense to me. Can you explain how that is intended behaviour? 
I just changed from '-' to '?' in the lineterminator.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread SilentGhost

SilentGhost added the comment:

It is quoting the values when line terminator contains any of the special 
characters. Exactly like documented. 
https://docs.python.org/3/library/csv.html#csv.QUOTE_MINIMAL

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread G Young

New submission from G Young:

When writing scientific notation to CSV with custom line-terminators, the 
behaviour is inconsistent depending on the line-terminator you use.

In the file provided, two different line-terminator result in one quoting the 
number as a string and the other not. IMO the second example is correct, but I 
don't understand why the behaviours should be any different.

--
components: IO
files: bug.py
messages: 271779
nosy: G Young
priority: normal
severity: normal
status: open
title: Inconsistent CSV Writer Behaviour
versions: Python 3.5
Added file: http://bugs.python.org/file43963/bug.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com