Hello, I'm modifying another person's python code for a toying/learning experience, and right now I am repeatedly getting the error:
Code:
AttributeError: 'FOO' object has no attribute 'BAR'
(sometimes 'FOO' is an instance rather than an object, if you want to quibble)

To which my response is generally-- 'It doesn't? I thought FOO had that.. what does FOO really have, then? Maybe FOO isn't all that I thought it was.'
So, what I would like to be able to do is put a line of text into the script that goes something like:
Code:
print alltheattributesofobject(FOO)
so I can see what stuff FOO does and does not have.. (attributes, methods, what have you).
Is there such a command? I've tried searching google for things like "list attributes of an instance" (in which I intend "list" to be considered a verb) but it always gives me results treating "list" as a noun, which is understandable, but unhelpful.
Any help? Many thanks...