Repr or Str ?

Olivier Feys olivier.feys at gmail.com
Tue Feb 6 06:00:23 EST 2007


str is a text representation of the object, you can see it as a nice print
repr is the text representation of the object that you can evaluate to 
get the same object

Johny wrote:
> Where and when is good/nescessary to use `repr`  instead of `str` ?
> Can you please explain the differences
> Thanks
> LL
>
>   




More information about the Python-list mailing list