Message168015
A classmethod called importlib.abc.SourceLoader.source_to_code(source_bytes, path) would return a code object. By default it would be equivalent to ``compile(source_bytes, source_path, 'exec', dont_inherit=True)``, but others could override this to e.g. convert the source to an AST, optimize the AST, and then call compile() to get the desired code object. |
|
Date |
User |
Action |
Args |
2012-08-12 00:44:36 | brett.cannon | set | recipients:
+ brett.cannon, eric.snow |
2012-08-12 00:44:36 | brett.cannon | set | messageid: <1344732276.83.0.543554641885.issue15627@psf.upfronthosting.co.za> |
2012-08-12 00:44:36 | brett.cannon | link | issue15627 messages |
2012-08-12 00:44:35 | brett.cannon | create | |
|