Runtime Types
types.ClassMethodDescriptorType — runtime type
Identifies certain native class-method descriptors before binding. Access the raw descriptor through the class dictionary rather than normal attribute lookup; dict.fromkeys is already bound to the class when accessed normally. This does not describe every Python classmethod object.
Formal Syntax & Structure
python syntaxpython
types.ClassMethodDescriptorTypeReturn Value
type
The class object types.ClassMethodDescriptorType; this reference documents the class identity, not a universal constructor signature.
Working Example
Example Snippetpython
import typesvalue = dict.__dict__["fromkeys"]print(isinstance(value, types.ClassMethodDescriptorType))