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

Gustavo Sverzut Barbieri barbieri at gmail.com
Tue Sep 4 03:25:06 CEST 2007


On 9/3/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Caio Marcelo wrote:
> > Allows including statements inside a 'cdef class' level from others
> > files, BUT they must be correctly indented.
>
> What exactly does "correct" mean here? Do you mean
> that the contents of the included file start at an
> indentation of zero, or at the same level as the
> including code?


yes, so the included file is already indented, so in his example it
would act as:

cdef class (...)
   def bla():
       pass

-- 
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