Message1798
This is caused by LazyDict in javaos not overriding the __contains__ method. The 'in' keyword calls __contain__, and since LazyDict doesn't override it, it doesn't actually populate its dictionary before returning. The reason is succeeds when you send the script in on std in is because Jython prints out the 'os.environ' line in that case which calls __repr__ on LazyDict and causes it to populate.
I fixed this on the trunk in r3407. However, unless a larger bug comes up, I don't think this merits another release candidate so it's not going to make it into 2.2. When 2.2.1 is released, I'll copy the fix over. |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:57 | admin | link | issue1766527 messages |
2008-02-20 17:17:57 | admin | create | |
|