On Sep 20, 2008, at 4:45 AM, Dag Sverre Seljebotn wrote:

> Lisandro Dalcin wrote:
>
>> * This do not play well with '--embed-positions' global option
>
> For the record (not saying I expect you to), I believe the way to fix
> this is to pull out the embed_position stuff (from the top of  
> Nodes.py)
> and stick it into the same transform you just created -- that  
> should be
> rather trivial (and opens up the way for making things more  
> consistent,
> i.e. make "embedpositions" a compiler directive as well and just have
> --embed-positions be an alias for it).

That's exactly what I was going to say. Sage. uses this option to  
make it possible to view the source in .pyx files via introspection  
(as in ipython).

> The transform could be named DocstringTransform or something like that
> to keep the number of transforms down.

+1

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to