Extending Python with C++
Brian van den Broek
broek at cc.umanitoba.ca
Thu Dec 29 17:50:40 EST 2005
Brian van den Broek said unto the world upon 29/12/05 12:03 PM:
> jeremito said unto the world upon 29/12/05 11:39 AM:
>
>>I am learning how to extend Pythong with C++. I have will be writing
>>some code in C++ and want/need Python to interact with it. I am not
>>having success following the online documentation from
>>http://docs.python.org/ext/ext.html. I have also looked briefly at
>>some of the demos in the source code distribution. Can anyone help me?
>> I am using the MacPython (version 2.4) distribution.
>>
>>I have one specific question. The documentation online states:
>>
>>"If the main program (the Python interpreter) is compiled and linked by
>>the C compiler, global or static objects with constructors cannot be
>>used. This is not a problem if the main program is linked by the C++
>>compiler."
>>
>>Thanks,
>>Jeremy
>
>
> I have a specific answer.
>
> Best,
>
> Brian vdB
Hello all,
while I think the point I was making was correct, I know I expressed
it in a snide and unkind way. Apologies to all, especially to the OP.
Sheepishly,
Brian vdB
More information about the Python-list
mailing list