Stefan Behnel wrote:

>>     for x < i < y:
>>       ...
> 
> while this is shorter, it also breaks existing code - although I assume you
> left the old syntax in?

Yes, it will be there for a while, although it will
produce a deprecation warning. Ultimately I would like
there to be One Way to do it.

>>* There are two new builtin functions, typecheck() and
>>   issubtype(), for checking the types of arguments more safely
>>   (since isinstance and issubclass can be fooled).
> 
> Could you elaborate on the actual problem here?

It's possible for an object to lie about its class
to isinstance() via its  __class__ attribute. This is
not acceptable when you need to ensure that the object
has a particular C layout.

> Could you imagine using our doctest based test runner as well?

To do what, exactly?

-- 
Greg

_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to