[issue5094] datetime lacks concrete tzinfo impl. for UTC
Alexander Belopolsky
report at bugs.python.org
Wed May 26 00:14:34 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Note that Brett has already mentioned backward compatibility issues, but suggested that "[adding tz_aware argument may provide] a transition plan to make utcnow() always return a timezone-aware datetime object." [msg106413]
I would say, lets leave utcnow() alone. It is ugly enough without a boolean argument. I don't see how datetime.now(utc) can be too error prone. I think Brett's comment about a stupid developer was about passing tzinfo instead of bool to utcnow() and that I agree makes no sense.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5094>
_______________________________________
More information about the Python-bugs-list
mailing list