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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30046>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to