On Thu, Feb 18, 2010 at 13:41, anatoly techtonik <techto...@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to