Message297048
| Author |
vstinner |
| Recipients |
belopolsky, martin.panter, musically_ut, serhiy.storchaka, vstinner |
| Date |
2017年06月27日.15:34:40 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1498577680.36.0.707409368127.issue30302@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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? |
|