Emacs elpy : How to view a list of all (global) variables and class attributes in the current buffer?

86 Views Asked by At

I use elpy in emacs for Python development. If I enter the command C-C C-o I'll be able to view all defined functions, classes and methods in the current buffer. But I don't see any of class attributes and defined (global) variables. Is there any way to have this extra information?

1

There are 1 best solutions below

3
Stephen On
globals()
locals()

are python commands and will dump the output in the python buffer. you can try extending elpy to make a shortcut dump stuff in a buffer.