Extending Python with C++
Brian van den Broek
broek at cc.umanitoba.ca
Thu Dec 29 13:03:54 EST 2005
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
More information about the Python-list
mailing list