On May 9, 5:00 am, Stef Mientki <[EMAIL PROTECTED]>
wrote:
> hello,
>
> is there a function / library / IDE that displays all the user defined 
> variables,
> like the workspace in MatLab ?
>
> thanks,
> Stef Mientki

Stef,


In the Python interactive prompt you can try:

[var for var in dir() if not (var.startswith('_') or var=='var')]

Example:
-------------------
>>> a=10
>>> b=20
>>> [var for var in dir() if not (var.startswith('_') or var=='var')]
['a', 'b']
>>>
-------------------

Hope that helps,
Nick Vatamaniuc

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to