Stefan Behnel wrote:
> Read my answer. :) This is not about Python compatibility, as it deals with
> the semantics of C types.

But C types are Python types too. There's no way
of reading the programmer's mind to find out whether
he's thinking of his extension type as a C type or
a Python type when he passes it to isinstance().

So there is a semantic difference that could affect
the outcome in some cases, albeit rare ones.

Another consideration is that while I try to make
it so that you don't need to know about the C
API in order to use Pyrex, I also want to make it
so that it seems natural to someone who *does*
know something about the C API.

The C API manual documents PyObject_IsInstance as
having semantics that correspond to the the Python
isinstance(). Someone who knows that is likely to
expect them to correspond in Pyrex.

-- 
Greg


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

Reply via email to