[issue30302] Improve .__repr__ implementation for datetime.timedelta

Martin Panter report at bugs.python.org
Fri Jun 30 20:02:08 EDT 2017


Martin Panter added the comment:

Don’t let my minus sign suggestion stop this, especially since a couple other people said they don’t like it. The current pull request proposal is beneficial without it.

Isn’t there a “Unicode writer” API that could be used? Maybe that’s another alternative to the string accumulation or list building, but I never used it so it may not be appropriate.

----------

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


More information about the Python-bugs-list mailing list