Message3792
Jython 2.2 on java1.5.0_16
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> 'PATH' in os.environ
0
>>> os.environ['PATH']
'/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/peke/jython2.2/'
>>> 'PATH' in os.environ
1
If I remember correctly, os.environ is initialized lazily and most
likely 'in' doesn't tricker real initialization. Works without problems
in CPython (tested only on 2.5.1). |
|
Date |
User |
Action |
Args |
2008-11-20 14:44:22 | pekka.klarck | set | recipients:
+ pekka.klarck |
2008-11-20 14:44:22 | pekka.klarck | set | messageid: <1227192262.22.0.99651630451.issue1176@psf.upfronthosting.co.za> |
2008-11-20 14:44:22 | pekka.klarck | link | issue1176 messages |
2008-11-20 14:44:21 | pekka.klarck | create | |
|