code-object

Gabriel Genellina gagsl-py at yahoo.com.ar
Tue Feb 20 22:29:54 EST 2007


En Tue, 20 Feb 2007 22:39:43 -0300, LG <lgoh at optonline.net> escribió:

>>>> code = compile('print "hello everyone, how are you? "', '<string>',
> 'exec')
>>>> exec code
> hello everyone, how are you?
>>>> print code
> <code object ? at 0x8122d70, file "<string>", line 1>
>
> how to print the code object ?
> like the one on .pyc

Do you want the source code back? You need a decompiler. decompyle may  
work but it's outdated.

-- 
Gabriel Genellina




More information about the Python-list mailing list