New submission from J Rt <jean.r...@gmail.com>:
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? ---------- components: Library (Lib) messages: 376626 nosy: jean.rblt priority: normal severity: normal status: open title: unpractical printing of datetimes by the interpreter type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41750> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com