Dag Sverre Seljebotn, 24.03.2010 20:17:
> I vote for making C style declarations available in __annotations__ as
> well...

I assume you meant the normal Cython syntax declarations, i.e. type 
declarations that were not written as Py3 annotation, right? That's a good 
idea, too.

My last question was rather *how* to make them available, though. If we use 
custom objects to represent them, the module will end up with a dependency 
on those objects. If we convert them to a string representation, they'll be 
much easier to handle by generic tools, but interpreting them requires a C 
parser. Also, how should code know that it was Cython that generated the 
annotations, and that they *can* be interpreted as C types?

We could use a special string syntax, e.g. "C[...]", or "Cython(...)", or 
maybe "ctype:...".

I think we should discuss this on c.l.py, so that other interested projects 
can jump in.

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

Reply via email to