code-object

LG lgoh at optonline.net
Tue Feb 20 20:39:43 EST 2007


Hi, All,

>>>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

Regards
LG





More information about the Python-list mailing list