<span></span><div>Take a look at the repr and str methods:</div><div> <a href="http://docs.python.org/reference/datamodel.html#basic-customization" target="_blank">http://docs.python.org/reference/datamodel.html#basic-customization</a></div>
<div><br></div><div>Ok so I am still a little confused, It seems that __str__ is used for print and str()</div><div>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.</div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80); "><div>in   &gt;&gt;&gt;b</div><div>out &gt;&gt;&gt;21-letter &quot;BString&quot; instance</div>
<div>               seq: I am a BString object</div></span></div><div name="mailplane_signature"> <table><tbody><tr><td width="80">
<img src="http://www.gravatar.com/avatar/226e40fdc55d4597a46279296a616384.png">
</td><td width="10"></td><td width="127" align="center">
<div style="padding-right: 5px; padding-left: 5px;
font-size: 11px; padding-bottom: 5px; color: #666666;
padding-top: 5px">
  <p><strong>Vincent Davis<br>
    720-301-3003
  </strong><br>
    
    <a href="mailto:vincent@vincentdavis.net">vincent@vincentdavis.net</a>  </p>
<div style="font-size: 10px">
  <a href="http://vincentdavis.net">my blog</a> |
  <a href="http://www.linkedin.com/in/vincentdavis">LinkedIn</a></div></div></td></tr><tr></tr></tbody></table></div><br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 11:24 AM, Wayne Werner <span dir="ltr">&lt;<a href="mailto:waynejwerner@gmail.com">waynejwerner@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div></blockquote></div><br>