How to list attributes in Mechanical CPython Console?
Ayush Kumar
Member, Moderator, Employee Posts: 470
✭✭✭✭
Answers
-
The conventional
dir()
doesn't print a list of all the attributes and functions of the object in the CPython Console. One has to explicitly use the theprint
command to print the returned list fromdir()
print(dir(attribute))
0