[Tutor] python workspace

Alan Gauld alan.gauld at btinternet.com
Wed Jun 3 00:44:00 CEST 2009


"roberto" <roberto03 at gmail.com> wrote

> i'd like to ask if there is anything in python which helps to see what
> variables have been defined and their type and their dimension etc;

Bear in mind that Python variables are simply names so they 
have no type or dimension information. That belongs to the 
objects to which they refer.

> if any of you has ever used Matlab, i mean something really similar to
> its workspace, where all the user created variables are stored and
> constantly updated

That having been said most debugger envioronments will show you 
the current variables in scope and their values. Certainly IDLE, 
Pythonwin and Eclipse/PyDev can all do that.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list