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/2003-April/034508.html below:

[Python-Dev] tzset

[Python-Dev] tzsetGuido van Rossum guido@python.org
Fri, 11 Apr 2003 10:50:36 -0400
> > That would be acceptable to me.  Since all we want is a wrapper
> > around the C library tzset(), all we need to test for is that it
> > does that.
> 
> It's not really what I want.  When we expose highly
> platform-dependent functions, we create a lot of confusion along
> with them.  Perhaps that's because we're not always careful to
> emphasize that the behavior is a cross-platform crapshoot, and users
> are rarely careful to heed such warnings.

I guess we shouldn't expose the Windows version of tzset() at all.
The syntax it accepts and the rules it applies (always following US
DST rules) make it pretty useless.

OTOH I think tzset() is useful on most Unix and Linux platforms, and
there's no easy alternative (short of wrapping the tz library, which
would be a huge task), so there we should expose it.

I believe this means that Stuart's patch can be checked in as is.
We can tweak it based on reports during the beta cycle.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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