when I write Python code from the interpreter I can type dir() to have a list of names defined in the current scope. How can achieve to have the same informatio
dir()
This may work for you, if you need a simple solution:
function dir(object) { stuff = []; for (s in object) { stuff.push(s); } stuff.sort(); return stuff; }