I try to list all the attributes of an object in Python pdb.
Let's say I want to list all the attributes and all methods of sys.stderr.
sys.stderr
How can I do that?
For pdb, you should be able to do p dir(a).
p dir(a)
2.1m questions
2.1m answers
60 comments
57.0k users