[issue9096] importlib doesn't handle valid marshalled data with invalid semantics

2010-07-04 Thread Brett Cannon
Brett Cannon added the comment: This was fixed in r82523. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue9096] importlib doesn't handle valid marshalled data with invalid semantics

2010-06-30 Thread Brett Cannon
Brett Cannon added the comment: Turns out that an ImportError should be raised when a bytecode object contains a non-code object. My next patch which makes SourceLoader the primary loader will have the fix. -- components: +Library (Lib) resolution: -> accepted type: -> behavior vers

[issue9096] importlib doesn't handle valid marshalled data with invalid semantics

2010-06-27 Thread Benjamin Peterson
New submission from Benjamin Peterson : get_code() returns marshal.loads(self.get_data()). If get_data() returns valid marhsal data that is not a code object, get_code() will explode when it tries to exec it with a TypeError not the expected ValueError. -- assignee: brett.cannon messag