On Mon, Aug 29, 2011 at 2:17 PM, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
> Guido van Rossum wrote:
>>
>> (Just like Python's own .h files --
>> e.g. the extensive renaming of the Unicode APIs depending on
>> narrow/wide build) How does Cython deal with these?
>
> Pyrex/Cython deal with it by generating C code that includes
> the relevant headers, so the C compiler expands all the
> macros, interprets the struct declarations, etc. All you
> need to do when writing the .pyx file is follow the same
> API that you would if you were writing C code to use the
> library.

Interesting. Then how does Pyrex/Cython typecheck your code at compile time?

-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to