Message376626
I think the way datetimes get printed by the interpreter is a bit unpractical. For example:
datetime.datetime(2020, 9, 9, 8, 0, tzinfo=<UTC>)
The reason for the inpracticality is that this cannot be put right into python back:
>>>datetime.datetime(2020, 9, 9, 8, 0, tzinfo=<UTC>)
File "<ipython-input-77-304f010bd0d1>", line 1
datetime.datetime(2020, 9, 9, 8, 0, tzinfo=<UTC>)
^
SyntaxError: invalid syntax
Would there be a way to make the output printed directly usable again in the interpreter? Printing datetime.datetime(2020, 9, 9, 8, 0, tzinfo=pytz.utc) for example, or something like that? |
|
Date |
User |
Action |
Args |
2020-09-09 09:48:58 | jean.rblt | set | recipients:
+ jean.rblt |
2020-09-09 09:48:57 | jean.rblt | set | messageid: <1599644937.99.0.824034115929.issue41750@roundup.psfhosted.org> |
2020-09-09 09:48:57 | jean.rblt | link | issue41750 messages |
2020-09-09 09:48:57 | jean.rblt | create | |
|