[C++-SIG] Python calling C++ issues

Dror, Ephi ephi.dror at cis.canon.com
Wed Nov 24 19:46:19 CET 1999


Hi Mark,

Thanks a lot again. We tried it but unfortunately it did not help in our
case.

Does anyone know where can we download C++ based debug version of Python
1.52 for Linux?

Our next step is to use Python 1.52 which is compiled with C++ and possibly
a debug version and then try our little sample.

Thanks a lot.

Ephi.

-----Original Message-----
From: Mark Hammond [mailto:mhammond at skippinet.com.au]
Sent: Wednesday, November 24, 1999 12:53 AM
To: 'Ephi Dror'; c++-sig at python.org
Subject: RE: [C++-SIG] Python calling C++ issues


> Unfortunately, we don't seems to understand what do you mean
> by "Object". Is
> it something we need to define or is it already defined in a
> h file that we
> forgot to include. We use Linux/gcc environment.

Sorry - I meant "PyObject"

> Also, in our sample, we did not use virtual function

Hmmm - OK - my advice could well be wrong.  Unless your C compiler
always adds a vfptr.

I have seen this problem (when using virtuals) before and the symptoms
sound almost identical.  Try the code snippet I posted, and see if the
debugger does show the "PyObject *" and the "Spam *" as different
values, even though they are pointing to the same object.

Otherwise Im afraid I have no idea...

Mark.


_______________________________________________
C++-SIG maillist  -  C++-SIG at python.org
http://www.python.org/mailman/listinfo/c++-sig




More information about the Cplusplus-sig mailing list