Tutorial - section 8.5 -- User Defined Execptions?

Bengt Richter bokr at oz.net
Thu Apr 17 13:42:54 EDT 2003


On Wed, 16 Apr 2003 03:52:44 -0700, Erik Max Francis <max at alcyone.com> wrote:

>user at domain.invalid wrote:
>
>> What do the back ticks in method "__str__" mean?
>
>The backquotes are a way of saying "evaluate the repr of this
>expression."  That is, `x` is the same as repr(x).  Most consider the
>use of backquotes for this purpose gauche.
>
What other use is there (outside of strings and comments)?
Have we purposely been set up for gaucheries?
;-)

Regards,
Bengt Richter




More information about the Python-list mailing list