Take a look at the repr and str methods: http://docs.python.org/reference/datamodel.html#basic-customization
Ok so I am still a little confused, It seems that __str__ is used for print and str() byt what allows whats below. That is why does just entering the name of the instance return print(b). I have tried a few combinations but not the right one. in >>>b out >>>21-letter "BString" instance seq: I am a BString object *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> On Mon, Apr 5, 2010 at 11:24 AM, Wayne Werner <waynejwer...@gmail.com>wrote: > >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor