[Tutor] Instances

Greg Kellogg greg.kellogg at gmail.com
Sat Aug 6 15:18:57 CEST 2005

Lets say i do:

>>> i = f.get_movie('0092411')

No I know the i holds an instance:

>>> i
<imdb.Movie.Movie instance at 0x2d7a08>

How can I find out the value of all the data this instance has?  I can
do a dir(i)

['_Movie__modFunct', '_Movie__movie_data', '_Movie__namesRefs',
'_Movie__titlesRefs', '__cmp__', '__contains__', '__deepcopy__',
'__delitem__', '__doc__', '__getitem__', '__init__', '__module__',
'__nonzero__', '__setitem__', '__str__', 'accessSystem',
'add_to_current_info', 'append_item', 'clear', 'copy', 'currentRole',
'current_info', 'default_info', 'get', 'get_current_info',
'get_namesRefs', 'get_titlesRefs', 'has_current_info', 'has_key',
'isSameTitle', 'items', 'keys', 'keys_alias', 'movieID', 'myID',
'myTitle', 'notes', 'reset', 'set_current_info', 'set_data',
'set_item', 'set_mod_funct', 'set_title', 'summary',
'update_namesRefs', 'update_titlesRefs', 'values']

I know there is more info in there than this, is there a way to see
everything that 'i" without hunting and pecking?

More information about the Tutor mailing list