[issue9000] Provide parseable repr to datetime.timezone

Alexander Belopolsky report at bugs.python.org
Tue Jun 15 17:52:50 CEST 2010


New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

Recently added datetime.timezone class does not have a custom repr, so one gets

>>> timezone.utc
<datetime.timezone object at 0x100681ef0>

instead of parseable

datetime.timezone(datetime.timedelta(0))

This is inconsistent with the way other classes in datetime module behave.

----------
assignee: belopolsky
keywords: easy
messages: 107876
nosy: belopolsky
priority: normal
severity: normal
stage: unit test needed
status: open
title: Provide parseable repr to datetime.timezone
type: feature request

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9000>
_______________________________________


More information about the Python-bugs-list mailing list