Getting a module's byte code, how?

Irmen de Jong irmen.NOSPAM at xs4all.nl
Wed Feb 2 17:03:17 EST 2005


What would be the best way, if any, to obtain
the bytecode for a given loaded module?

I can get the source:
import inspect
import os
src = inspect.getsource(os)

but there is no ispect.getbytecode()  ;-)

--Irmen



More information about the Python-list mailing list