Runtime Types
types.WrapperDescriptorType — runtime type
Identifies certain native special-method descriptors exposed on built-in classes, such as object.__str__. Retrieving one from a compatible instance binds a method wrapper. This is a concrete implementation-oriented category, not a test for all descriptors or callable values.
Formal Syntax & Structure
python syntaxpython
types.WrapperDescriptorTypeReturn Value
type
The class object types.WrapperDescriptorType; this reference documents the class identity, not a universal constructor signature.
Working Example
Example Snippetpython
import typesvalue = object.__str__print(isinstance(value, types.WrapperDescriptorType))