[Cython] PEPs 263 and 3120

Stefan Behnel stefan_ml at behnel.de
Wed Apr 23 06:49:28 CEST 2008


Hi,

Robert Bradshaw wrote:
> The whole control flow thing needs some more serious thought, and that I
> put it all on hold hoping that Fabrizio would get his project accepted
> and do it a much cleaner way. Right now it's just used to determine if
> arguments are assigned to in the body (which could be done otherwise).
> 
> Choosing a unicode string that's before and after everything seems just
> as arbitrary, but the whole setup needs to be changed.

Ok, I used a unicode string as end marker now.

BTW, I also noticed that some places in the code incorrectly assume that you
can write a filename into a C file comment or docstring without further
treatment. It needs to get encoded to do that. So it should get decoded to
unicode using the default filesystem encoding when coming from the outside
world, and (probably) encoded to ASCII with character replacement when written
to the code.

Stefan



More information about the Cython-dev mailing list