On Apr 14, 2010, at 4:31 PM, Lisandro Dalcin wrote:

> On 14 April 2010 19:38, Greg Ewing <[email protected]>  
> wrote:
>> Stefan Behnel wrote:
>>
>>> Should builtins continue to accept None or should it behave like  
>>> other
>>> extension types?
>>
>> Pyrex treats them just like any other extension type. In
>> fact the *are* just extension types that happen to be
>> predeclared.

In Cython, builtin types are a bit special as it checks to make sure  
it is exactly the specified type, not just a subclass. (Otherwise,  
there's little room for optimization and so little point in declaring  
them.)

> I agree with Greg and Stefan, i.e., no special handling for builtin  
> types.

Yes, lets not an an exception to the exception...

- Robert

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

Reply via email to