• Ethan Furman's avatar
    Close #19030: improvements to inspect and Enum. · e03ea37a
    Ethan Furman yazdı
    inspect.getmembers and inspect.classify_class_attrs now search the metaclass
    mro for types.DynamicClassAttributes (what use to be called
    enum._RouteClassAttributeToGetattr); in part this means that these two
    functions no longer rely solely on dir().
    
    Besides now returning more accurate information, these improvements also
    allow a more helpful help() on Enum classes.
    e03ea37a
inspect.py 82 KB