Message3792

Author pekka.klarck
Recipients pekka.klarck
Date 2008-11-20.14:44:21
SpamBayes Score 1.7691164e-05
Marked as misclassified No
Message-id <1227192262.22.0.99651630451.issue1176@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2008-11-20 14:44:22pekka.klarcksetrecipients: + pekka.klarck
2008-11-20 14:44:22pekka.klarcksetmessageid: <1227192262.22.0.99651630451.issue1176@psf.upfronthosting.co.za>
2008-11-20 14:44:22pekka.klarcklinkissue1176 messages
2008-11-20 14:44:21pekka.klarckcreate