[Python-3000] how about switching to a preprocessor? (Re: A better way to initialize PyTypeObject)
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Dec 3 02:13:47 CET 2006
Antoine Pitrou wrote:
> I think you could declare a C macro as an "external function" in the
> Pyrex code and Pyrex would probably be happy with that.
Yes, that works as long as you can declare it as having
parameter and return types that make sense to Pyrex.
There are a few things that can't be handled that way,
such as type-polymorphic macros. I haven't come up with
a good solution for those, yet.
--
Greg
More information about the Python-3000
mailing list