sross at connectmail.carleton.ca
Thu Mar 11 16:52:35 CET 2004
"Olaf Meding" <OlafMeding at compuserve.com> wrote in message
news:9e5ea2c4.0403110753.5c4d437a at posting.google.com...
> Is `object` (using backquotes) the same as saying str(object)? Trying
> to understand how backquotes work. Thanks for your help.
>>> class C:
... def __repr__(self):
... return "repr"
... def __str__(self):
... return "str"
>>> c = C()
More information about the Python-list