Dag Sverre Seljebotn wrote:
> Craig Citro wrote:
> 
>>is it safe to assume that the Bar we import at runtime
>>is going to be coming from the same module whose .pxd we analyzed at
>>compile-time? Is it at least safe to assume that the Bar we import at
>>runtime will be the same *type* as the Bar we saw at compile-time?

The assumption in Pyrex is that they're compatible with the
interface described in the .pyx file.

>>In general, it would be nice ... to be able to provide Cython with as much
>>information as possible about the module it's going to see at runtime
>>-- not just what's in the .pxd.

That would be a departure from the Pyrex view of things. The
idea is that the .pxd describes the interface, and the .pyx
contains implementation details that can change without having
to recompile anything that uses the module.

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

Reply via email to