[Pyrex] [PATCH] 'include' statements inside 'cdef class' level
Gustavo Sverzut Barbieri
barbieri at gmail.com
Mon Sep 3 23:49:21 CEST 2007
On 9/3/07, Caio Marcelo <cmarcelo at gmail.com> wrote:
> Allows including statements inside a 'cdef class' level from others
> files, BUT they must be correctly indented.
>
> (use option "-p3" in patch to apply it direct in Cython/Compiler directory).
>
> For example, in python-etk we want
>
> -----8<----
> # file.pxi
> cdef class (...)
> # note that without the patch, this would not be allowed
> include "other_file.pxi"
> ---->8----
> # other_file.pxi (notice the indentation)
> def bla():
> pass
> ----8<----
>
> Is this behaviour interesting for you?
Yes, I'd love to have this for some work I'm doing.
--
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: barbieri at gmail.com
MSN: barbieri at gmail.com
ICQ#: 17249123
Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
More information about the Pyrex
mailing list