"Being a descriptor" == "belonging to a type having a __get__ method",
Gabriel Genellina <gagsl-
> 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 that they should
> not be tested that way?