user17911
user17911

Reputation: 1341

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

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?

Upvotes: 0

Views: 137

Answers (1)

Stephen
Stephen

Reputation: 608

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.

Upvotes: 0

Related Questions