STINNER Victor added the comment: > 2. Factor out the negative sign: -timedelta(seconds=60) rather than > timedelta(days=-1, seconds=86340).
Please don't do that. repr() is designed for developers, not end users. Don't make repr() implementation overcomplicated. Just dump raw data, tha's all. If you want something more smart, use str() or even write a *new* method? ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30302> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com