Author xmorel
Recipients xmorel
Date 2015-08-08.14:03:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439042614.34.0.045626812152.issue24828@psf.upfronthosting.co.za>
In-reply-to
Content
It looks to be fixed in 3.3 and up, but in Python 2.7

    import ast
    m = ast.Module(body=[
        ast.Expr(value=ast.Name(id='foo', ctx=ast.Store()))
    ])
    ast.fix_missing_locations(m)
    code = compile(m, '', mode='exec')
    eval(code)
 
will segfault on eval. So will a similarly incorrect ast.Attribute node.

Version tested:

Python 2.7.10 (default, May 28 2015, 12:02:55) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
History
Date User Action Args
2015-08-08 14:03:34xmorelsetrecipients: + xmorel
2015-08-08 14:03:34xmorelsetmessageid: <1439042614.34.0.045626812152.issue24828@psf.upfronthosting.co.za>
2015-08-08 14:03:34xmorellinkissue24828 messages
2015-08-08 14:03:32xmorelcreate