En Sun, 03 Jun 2007 21:35:05 -0300, Alex Martelli <[EMAIL PROTECTED]> escribió:
>> My actual use case: I want to check if an object (instance of a class
>> that inherits from file) still uses the original write method or has
>> overriden it.
>
> I'd check for identity between type(o).write and fil
Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> For most types, there are macros like PyXxxx_Check and
> PyXxxx_CheckExact. But not for descriptors, and I want to test if a
> certain object is a descriptor or not. May I define
> PyMethodDescr_Check, by example, along the lines of similar checks, or
For most types, there are macros like PyXxxx_Check and
PyXxxx_CheckExact. But not for descriptors, and I want to test if a
certain object is a descriptor or not. May I define
PyMethodDescr_Check, by example, along the lines of similar checks, or
the fact that they are not already defined implies th