Using bytecode, not code objects

Fabiano Sidler fabianosidler at
Sun Jan 29 01:55:38 CET 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