Using bytecode, not code objects

Fabiano Sidler fabianosidler at gmail.com
Sat Jan 28 19:55:38 EST 2006


Hi folks!

I'm looking for a way to compile python source to bytecode instead of
code-objects. Is there a possibility to do that? The reason is: I want
to store pure bytecode with no additional data.

The second question is, therefore: How can I get the correct values
for a given bytecode, such as the stacksize and flags attributes of
the correspondent code object?

No, I don't want to extract all of these things out of a code object.

Best wishes and thanks for answering!
F. Sidler



More information about the Python-list mailing list