Lenard Lindstrom wrote:
Unfortunately, the special parser machinery to support Cython includes is only implemented at the module level. It was never generalized to work in any code block.
The include statement in Pyrex was something of a hack that I used for sharing declarations before the cimport mechanism existed. I regarded it as more or less obsolete after that and didn't develop it any further. You could put in a feature request to the Cython developers. -- Greg