May-09-2021, 07:06 PM
Alterative
dir(class)
.>>> dir(Human) [..... '__subclasshook__', '__weakref__', 'age', 'display']To just show method and not all special methods.
>>> [m for m in dir(Human) if not m.startswith('__')] ['age', 'display']