Message150584
Is 3.3 message better?
>>> datetime.now(tz=X())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: offset must be a timedelta strictly between -timedelta(hours=24) and timedelta(hours=24).
In 2.7, the message is indeed misleading:
>>> datetime.now(tz=X())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439
I am not sure fixing this in 2.x is worth the trouble, but I would consider improving the message in 3.x by adding information about the actual offset. I vaguely remember that there was a reason for leaving that info out in 3.x. |
|
Date |
User |
Action |
Args |
2012-01-04 03:51:31 | belopolsky | set | recipients:
+ belopolsky, lemburg, exarkun |
2012-01-04 03:51:31 | belopolsky | set | messageid: <1325649091.3.0.632765285004.issue13556@psf.upfronthosting.co.za> |
2012-01-04 03:51:30 | belopolsky | link | issue13556 messages |
2012-01-04 03:51:30 | belopolsky | create | |
|