On Wed, Aug 27, 2008 at 5:51 PM, Robert Bradshaw
<[EMAIL PROTECTED]> wrote:
>
> On Aug 27, 2008, at 3:54 AM, Dag Sverre Seljebotn wrote:
>
>> Stefan Behnel wrote:
>>>
>>> Stefan Behnel wrote:
>>>>
>>>> we've already discussed a couple of times how to provide type
>>>> information
>>>> for pure Python source code. It was generally agreed that it's difficult
>>>> to do so inside of the function body and easier to do for function
>>>> signatures if we use Py3 annotations. I don't remember any good ideas
>>>> how
>>>> to provide type information for classes, i.e. how to make them extension
>>>> types.
>>
>> Someone must have mentioned this?:
>>
>> @cython.cdef
>> class A:
>>    ...
>>
>> @cython.cdef
>> def func(): ...
>>
>> Just mentioning it as a possibility.
>
> This is the way I was imagining doing it, especially as .pxd files move
> towards being auto-generated. The proposal of being able to simply declare
> them in the pxd file is an interesting one, and though it feels a bit sloppy
> to me perhaps it would be good to support as well (curious for more input).

There also needs to by some syntax to define variables etc, but
anything that allows me to use the full power of Cython yet stay in
pure Python is fine with me.

Looking forward to this!
Ondrej
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to