[Pyrex] Pyrex at Pycon

Bob Ippolito bob at redivi.com
Tue Mar 30 16:56:05 CEST 2004


On Mar 30, 2004, at 1:11 AM, Greg Ewing wrote:

> Paul Prescod <paul at prescod.net>:
>
>> When I had some extra time on a plane I started to write up a
>> PEP-like-thing. My proposal is that macros are expanded by the
>> preprocessor and Pyrex works on the expanded output.
>
> What about #defines used as constants? Probably
> you'll want them turned into enums and/or module
> attributes.
>
> What about #include directives? Most of the time
> you probably don't want to expand them, otherwise
> you'd end up wrapping all the system header files.

Well, it wouldn't be the worst thing in the world to process all the 
system header files once (though caching this somewhere would be 
awfully smart).  You pretty much have to process half the world to wrap 
Mac headers anyway ;)

-bob





More information about the Pyrex mailing list