Forward Declaring Py_complex
Gerhard Haering
gerhard.haering at gmx.de
Wed Jul 3 10:15:50 EDT 2002
In article <memo.20020703144738.2084A at a.a>, Mark Charsley wrote:
> Is there any way to forward declare Py_complex in C++ headers?
#include "complexobject.h" should do the trick.
> I'm trying to create a C++ function that returns a Py_complex, and would
> really prefer not to have to pull in all of Python.h in the header file.
Any reason why? I can't think of any good reason.
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list