468,316 Members | 1,506 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

view workspace, like in MatLab ?

hello,

is there a function / library / IDE that displays all the user defined variables,
like the workspace in MatLab ?

thanks,
Stef Mientki
May 9 '07 #1
1 2230
On May 9, 5:00 am, Stef Mientki <S.Mientki-nos...@mailbox.kun.nl>
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

May 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by dataangel | last post: by
3 posts views Thread by Mohammed Smadi | last post: by
6 posts views Thread by Lars Christiansen | last post: by
9 posts views Thread by Carl | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.