repr/str diff between Python 2 and 3
Skip Montanaro
skip.montanaro at gmail.com
Tue Oct 11 21:46:30 EDT 2016
> Only that one should not rely on ‘str’ preserving the value accurately,
> as documented in Python 2.
Sure, but this choice is out of my hands. It's csv.writerow that calls
str(), not me. I could probably subclass csv.writer and csv.DictWriter, and
override the writerow method, but I would prefer not to if I can avoid it.
I could also propose a change to the writerow method, but - even if
accepted - it wouldn't change earlier 3.x behavior.
Skip
> --
> \ “[Entrenched media corporations will] maintain the status quo, |
> `\ or die trying. Either is better than actually WORKING for a |
> _o__) living.” —ringsnake.livejournal.com, 2007-11-12 |
> Ben Finney
>
> --
> https://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list