[Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

Lennart Regebro regebro at gmail.com
Thu Feb 18 16:01:16 CET 2010


On Thu, Feb 18, 2010 at 13:41, anatoly techtonik <techtonik at gmail.com> wrote:
> It will still require workarounds and bridges to make API in user
> scripts convenient, i.e.
>
> try:
>  import pytz
>  mydatetime = PytzDatetime()
> catch ImportError:
>  mydatetime = ClassicDatetime()

Only if you want to work both with and without pytz. So don't. Just
require pytz. I don't see the problem with that.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64


More information about the Python-Dev mailing list