New submission from Peter Simons <sim...@cryp.to>: Attached are two programs that I would expect to produce the same output, but they don't.
$ python --version Python 2.6.5 $ cat test-timezone-1.py import os, time os.environ["TZ"] = "Europe/Berlin" time.tzset() print "time.timezone =", time.timezone os.environ["TZ"] = "Egypt" time.tzset() print "time.timezone =", time.timezone $ cat test-timezone-2.py import os from time import tzset, timezone os.environ["TZ"] = "Europe/Berlin" tzset() print "timezone =", timezone os.environ["TZ"] = "Egypt" tzset() print "timezone =", timezone $ python test-timezone-1.py time.timezone = -3600 time.timezone = -7200 $ python test-timezone-2.py timezone = -3600 timezone = -3600 ---------- components: Library (Lib) messages: 115864 nosy: simons priority: normal severity: normal status: open title: time.tzset() doesn't properly reset the time.timezone variable type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9798> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com