A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-February/097758.html below:

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

[Python-Dev] Add UTC to 2.7 (PyCon sprint idea) [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

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