PyEval_EvalCode(...) problem

2009-03-10 Thread googler . 1 . webmaster
Hi! I have a problem with PyEval_EvalCode(...) I compile the following code and execute them with PyEval_EvalCode (...) class MyClass(mod.Upper): pass register(MyClass) #just the type, not the instance Thats all. So register(...) is a Python C API method so i take the type and store it

Re: PyEval_EvalCode(...) problem

2009-03-10 Thread Gabriel Genellina
En Tue, 10 Mar 2009 12:32:00 -0200, googler.1.webmas...@spamgourmet.com escribió: Hi! I have a problem with PyEval_EvalCode(...) I compile the following code and execute them with PyEval_EvalCode (...) class MyClass(mod.Upper): pass register(MyClass) #just the type, not the instance

Re: PyEval_EvalCode(...) problem

2009-03-10 Thread googler . 1 . webmaster
http://rafb.net/p/Uyb5Ps45.html Pelase note, when I call PyObject_CallObject(...) in the wrapped C register(..) method it works fine. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyEval_EvalCode(...) problem

2009-03-10 Thread Gabriel Genellina
En Tue, 10 Mar 2009 13:23:44 -0200, googler.1.webmas...@spamgourmet.com escribió: http://rafb.net/p/Uyb5Ps45.html Pelase note, when I call PyObject_CallObject(...) in the wrapped C register(..) method it works fine. Sorry, I cannot make any sense of that code and your previous post. Where