Message1798

Author cgroves
Recipients
Date 2007-08-12.04:53:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2008-02-20 17:17:57adminlinkissue1766527 messages
2008-02-20 17:17:57admincreate