backquote

David MacQuigg dmq at gain.com
Thu Mar 11 21:13:34 CET 2004


On Thu, 11 Mar 2004 18:08:46 GMT, "Paul McGuire" <bogus at bogus.net>
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?

see GvR's comments at:
http://python.org/doc/essays/ppt/regrets/5

He is recommending we drop `x` in favor of repr(x)

-- Dave




More information about the Python-list mailing list