sdvillal / whatami

Easily provide python objects with self-identification
Other
9 stars 1 forks source link

Introspect class variables #6

Closed sdvillal closed 8 years ago

sdvillal commented 9 years ago

Class variables are not being introspected correctly, as in this example:

>>> class Me(object):
...     var = 3
>>> whatareyou(Me()).id()
Me()  # this is happening now, should probably be Me(var=3)