class print method...

Suresh Sharma ss27051980 at gmail.com
Mon Dec 5 02:11:40 EST 2011


Hello All,
I am new to python and i have stuck up on a particular issue with classes,
i understand this might be a very dumb question but please help me out.

I have created two classes and whenever i try to print the objects i get
this message but not the data,  __main__.cards instance at ****(memory
location) i even tried using __str__ but calling it also produces the same
result. Can anyone please help me how to get my objects printed. I googled
a lot but could not find anything relevant.

thanks in advance

regards
suresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111205/b230912e/attachment-0001.html>


More information about the Python-list mailing list