[issue11071] What's New review comments

STINNER Victor report at bugs.python.org
Mon Jan 31 14:07:44 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

The import in the following example is wrong :

>>> import datetime
>>> datetime.now(timezone.utc)
...

It should be replaced by: from datetime import datetime, timezone.

----------

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


More information about the Python-bugs-list mailing list