[Tutor] os.environ weirdness

lumbricus@gmx.net lumbricus@gmx.net
Thu Dec 12 04:33:01 2002


Hi!

> No, I didn't tinker around with os.environ.

Me neither.

> I see this behavior on both 
> of my windows 2000 computers.  Can anyone else reproduce this?

Yes:

>>> sys.platform
'osf1V4'
>>> for i in os.environ: print i
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/disk/29/dvass/Soft/tools/Python-2.2.1/Lib/UserDict.py", line 14, in
__getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 0
>>> 
 
> Poor Yorick
> gp@pooryorick.com

HTH, J"o!

-- 
sigfault

+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!