Message4294

Author MrMeanie
Recipients MrMeanie
Date 2009-03-14.14:53:39
SpamBayes Score 5.5578175e-06
Marked as misclassified No
Message-id <1237042420.06.0.40544692294.issue1272@psf.upfronthosting.co.za>
In-reply-to
Content
Accessing items from a slice taken from a AST list can cause a
ClassCastException in the Jython interpreter.

For exmaple:

expr = compile( 'a < b < c', '<module>', 'eval', _ast.PyCF_ONLY_AST )
compare = expr.body
a = compare.ops[1:][0]

will throw a ClassCastException
History
Date User Action Args
2009-03-14 14:53:40MrMeaniesetrecipients: + MrMeanie
2009-03-14 14:53:40MrMeaniesetmessageid: <1237042420.06.0.40544692294.issue1272@psf.upfronthosting.co.za>
2009-03-14 14:53:39MrMeanielinkissue1272 messages
2009-03-14 14:53:39MrMeaniecreate