[Tutor] retrieving instances value

nano nano@intermatik.co.id
07 Oct 2002 14:57:37 +0700


hi gurus,

i have this:

class Transaction:
	def __init__(self,name='',address='',age=''):
		self._name = name
		self._address = address
		self._age = age

# make a Transaction instance
obj = Transaction('my name', 'my address', 25)

how can i retrieve each 'obj' instance value without typing it one by
one manually (in case it have 100 instances)?

thanks in advance,

nano'