Re: Get "code object" of class

2008-10-11 Thread Okko Willeboordse
Thanks, "Why do you even need the classes code object anyway?" I need to instantiate and use the class in another process. This other process doesn't has access to the py or pyc file holding the m_class (source) code so I can't use pickle. Something like; In the first process (that has access to

Re: Get "code object" of class

2008-10-10 Thread Matimus
On Oct 10, 5:50 am, Okko Willeboordse <[EMAIL PROTECTED]> wrote: > To get the "code object" c of my_class I can do; > > c = compile(inspect.getsource(my_class), "

Get "code object" of class

2008-10-10 Thread Okko Willeboordse
To get the "code object" c of my_class I can do; c = compile(inspect.getsource(my_class), "