Is there a way to get all the attributes of an object without inline attachments? I hope to achieve this without a typeset or manual control of double underscores, if possible.
I tried dir, but it gives me all the built-in materials. Ideally, I would like something like
class A():
foo = 'bar'
>>>> dir(a)
['foo']
instead
>>>> dir(a)
['__doc__', '__module__', 'foo']
source
share