Need help on Python/C++

Sameh chafik pro chafik at nevrax.com
Tue Jun 6 05:18:40 EDT 2000


That  is okay, but why i do to translate a class write in C++. The
problem that the standard way is to use the PyTypeObject and define the
constructor as a function, but python don't recognize the translation as
class but as type object.morality if i do the translation of a class "X" it
is'nt posible in python to use it as a derivate class:
class A(X):
    def doSomething(self):
    .....
    ....

is not possible. Because X is a function.That seem insignificant but i want
to do an efficient translation between C++ code and Python.



"Martin von Loewis" <loewis at informatik.hu-berlin.de> a écrit dans le message
news: p6qitvx4aes.fsf at informatik.hu-berlin.de...
> "Sameh chafik pro" <chafik at nevrax.com> writes:
>
> > are there someone how know all aboute the data member of the structur
> > PyTypeObject?
>
>
> See Include/object.h:PyTypeObject.
>
> Regards,
> Martin
>





More information about the Python-list mailing list