[Pyrex] [PATCH] 'include' statements inside 'cdef class' level

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 5 22:57:58 CEST 2007


Robert Bradshaw wrote:
> I'm also curious, Greg, what was your reasoning to make this explicit  
> restriction in the first place

It was easier to implement includes at the top level only,
and that was sufficient for the use case I had in mind at
the time. That was before the cimport mechanism existed,
and the include statement was the only way of breaking a
large module into separate files.

When I introduced cimport, I regarded include as being
mostly obsoleted by it, so I didn't have much motivation
for extending include's functionality.

--
Greg




More information about the Pyrex mailing list