[issue9798] time.tzset() doesn't properly reset the time.timezone variable

2010-09-08 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the link, but I don’t think it’s related :). Look at the sample code again, this is just a regular name/variable confusion. -- ___ Python tracker _

[issue9798] time.tzset() doesn't properly reset the time.timezone variable

2010-09-08 Thread Brian Curtin
Brian Curtin added the comment: #6478 looks related -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9798] time.tzset() doesn't properly reset the time.timezone variable

2010-09-08 Thread Éric Araujo
Éric Araujo added the comment: More information here: http://docs.python.org/tutorial/classes#a-word-about-names-and-objects -- ___ Python tracker ___ __

[issue9798] time.tzset() doesn't properly reset the time.timezone variable

2010-09-08 Thread Éric Araujo
Éric Araujo added the comment: The name “timezone” you imported in test-timezone is bound to the object that was bound to time.timezone at the time of import. When time.timezone is bound to a new object, test-timezone.timezone does not change. -- nosy: +eric.araujo resolution: -> inv

[issue9798] time.tzset() doesn't properly reset the time.timezone variable

2010-09-08 Thread Peter Simons
New submission from Peter Simons : 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.env