How to know locals of script without running it

Johan Grönqvist johan.gronqvist at gmail.com
Tue Oct 27 03:30:02 EDT 2009


Nadav Chernin skrev:
> Is there a way to know locals of the script without running it?

As I interpret the question, I believe there is. I think Pylint does 
what you want. I have no idea how it does it, or how certain it can be 
to find all locals, but it may give you a place to start looking.

Pylint homepage: <http://www.logilab.org/857/>

/ johan




More information about the Python-list mailing list