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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4