[Python-ideas] More compact bytecode

Victor Stinner victor.stinner at gmail.com
Fri Feb 5 21:31:08 EST 2016


2016-02-06 1:49 GMT+01:00 Serhiy Storchaka <storchaka at gmail.com>:
> Slices are not supported by marshal.

It's possible to inject arbitrary objects to code constants at runtime
if you replace the __code__ attribute of a function.

I'm using that in FAT Python to inject builtin functions in constants.

Later if we consider that the optimization has been proven to be
efficient enough, we may consider to implement it directly in Python
;-)

Victor


More information about the Python-ideas mailing list