[Pyrex] [PATCH] 'include' statements inside 'cdef class' level
Caio Marcelo
cmarcelo at gmail.com
Tue Sep 4 14:50:44 CEST 2007
On 9/3/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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?
Thinking about it, both ways are reasonable (i.e. indenting or not the
included file). In both cases it will solve my problems, and I agree that
not indenting the included file may have better semantics: "it will include
the content of the other file in the level that the included statement is",
plain and simple. Actually, it would make the change even simpler: the
if-statement (the one that calls s2.expect_indent()) would not be necessary.
Cheers,
Caio Marcelo
More information about the Pyrex
mailing list