Repr or Str ?

Nick Vatamaniuc vatamane at gmail.com
Tue Feb 6 07:25:55 EST 2007


On Feb 6, 5:47 am, "Johny" <pyt... at hope.cz> wrote:
> Where and when is good/nescessary to use `repr`  instead of `str` ?
> Can you please explain the differences
> Thanks
> LL

When you want to provide a representation of an object from which you
can create another object if you had to.
Use 'str' if you just want to print it nicely.




More information about the Python-list mailing list