>>> in order to provide renames etc. This *does* have the problems you
>>> mention though, but it is somewhat easier to arbitrarily raise errors
>>> for complex expressions. But I'm not advocating it this time around.
>> The body of __assume__ gets executed at compile time? Is it checking  
>> or setting the object's parameters? It's more like assert I guess. I  
>> guess it's unclear what __assume__ really is--it's not really a cdef,  
>> def, or special function...

To answer this more directly:

__assume__ is simply called, and expected to generate a run-time error 
if the assumption was wrong.

After that, the assumptions (about object attributes) are simply made 
(by the compiler, and __assume__ doesn't come into it.)


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

Reply via email to