backquote
Gerrit
gerrit at nl.linux.org
Thu Mar 11 16:10:17 EST 2004
Paul McGuire wrote:
> "Skip Montanaro" <skip at pobox.com> wrote in message
> news:mailman.277.1079020800.19534.python-list at python.org...
> >
> > Olaf> Is `object` (using backquotes) the same as saying str(object)?
> > Olaf> Trying to understand how backquotes work. Thanks for your help.
> >
> > `object` is equivalent to repr(object).
> >
> > Skip
> >
> Is this syntax one of those vestigial short-cuts that is on somebody's hit
> list for future deprecation? To my eyes, `object` is more arcane than
> repr(object) - why else would we be having this thread in the first place?
Indeed. Recently (current CVS) a patch was applied removing almost all
occurences of backquotes in the standard library, and they will be
removed in Python 3.0. I believe Guido regrets them.
Gerrit.
--
Weather in Twenthe, Netherlands 11/03 20:25 UTC:
2.0°C wind 2.7 m/s E (57 m above NAP)
--
Asperger's Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/
More information about the Python-list
mailing list