Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class variables do not show up in the workspace. #291

Closed
spyder-bot opened this issue Feb 16, 2015 · 3 comments
Closed

class variables do not show up in the workspace. #291

spyder-bot opened this issue Feb 16, 2015 · 3 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2010-08-12T12:16:39Z

After creating a class variable it does not show up in the Workspace window.

If there is a class D already defined, if you enter a = D() at the Interactive console it does not show up in the Workspace. It would be useful if these were in the Workspace, so that you could double click on these and see the value of their member variables.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=291

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2010-08-12T10:51:05Z

The workspace was not designed that way.
In current Spyder release it is only intended to support the most used type of variables : all Python basic types (string, dict, list, ...) + numpy arrays + PIL images

But you're right, it could be very useful.

Status: Accepted
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2011-01-11T10:06:17Z

It may be possible to do this (if so then an edit to the documentation would be nice), but you should at least be able to add a watch for an instance variable. For example:

class Animal:
hasRabies=True

Toto=Animal()

I should be able to view Toto.hasRabies in my variable explorer, this shouldn't be too bad to implement (probably a string splice on the first '.' and/or eval would do it) and would be a step towards implementing the original enhancement.

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2011-02-28T06:44:20Z

Status: Duplicate
Mergedinto: 558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants