[issue30046] csv: Inconsistency re QUOTE_NONNUMERIC

Serhiy Storchaka report at bugs.python.org
Wed Apr 19 01:46:33 EDT 2017


Serhiy Storchaka added the comment:

This issue is not easy, it needs a thoughtful design before starting coding. I agree with Xiang's analysis and proposed solutions. But if just convert numbers to float we can get an overflow for large integers or lost precision in case of Decimal. The consumer of the CSV file may be not Python and it may support larger precision than Python float.

And it is not clear what would be better solution for enums. Should they be serialized by name or by value?

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30046>
_______________________________________


More information about the Python-bugs-list mailing list