"Skip Montanaro" <skip@pobox.com > wrote in message
news:mailman.27 7.1079020800.19 534.python-list@python.org ...[color=blue]
>
> 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
>[/color]
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?
"Paul McGuire" <bogus@bogus.ne t> wrote in message
news:OW14c.904$ vI3.875@fe2.tex as.rr.com...[color=blue]
> "Skip Montanaro" <skip@pobox.com > wrote in message
> news:mailman.27 7.1079020800.19 534.python-list@python.org ...[color=green]
> >
> > Olaf> Is `object` (using backquotes) the same as saying str(object)?
> > Olaf> Trying to understand how backquotes work. Thanks for your[/color][/color]
help.[color=blue][color=green]
> >
> > `object` is equivalent to repr(object).
> >
> > Skip
> >[/color]
> 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?[/color]
I believe so. It's scheduled for removal in Python 3.0 or at the heat
death of the universe, whichever comes first.
On Thu, 11 Mar 2004 18:08:46 GMT, "Paul McGuire" <bogus@bogus.ne t>
wrote:
[color=blue]
>"Skip Montanaro" <skip@pobox.com > wrote in message
>news:mailman.2 77.1079020800.1 9534.python-list@python.org ...[color=green]
>>
>> 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
>>[/color]
>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?[/color]
Paul McGuire wrote:[color=blue]
> "Skip Montanaro" <skip@pobox.com > wrote in message
> news:mailman.27 7.1079020800.19 534.python-list@python.org ...[color=green]
> >
> > 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
> >[/color]
> 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?[/color]
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:
OlafMeding@comp userve.com (Olaf Meding) wrote in message news:<9e5ea2c4. 0403110753.5c4d 437a@posting.go ogle.com>...[color=blue]
> Is `object` (using backquotes) the same as saying str(object)? Trying
> to understand how backquotes work. Thanks for your help.[/color]
Comment