Tuple Format?

Ben Wolfson rumjuggler at cryptarchy.org
Sun Sep 3 19:13:15 EDT 2000


On Sun, 3 Sep 2000 15:45:53 -0700, Clarence Gardner <clarence at netlojix.com>
wrote:

>On Sat, 02 Sep 2000, Ben Wolfson wrote:
>>On Sun, 03 Sep 2000 02:49:58 GMT, nobody at nowhere.nohow (Grant Edwards)
>>wrote:
>>
>>>I don't think the single back-quote "`" is used for anything in Python, is
>>>it?
>>
>>Backquotes around an object (`x`) appear to be a shorthand for calling
>>repr() on that object.  It seems rather odd, to me, that there should be
>>two ways to do such a simple thing.
>>
>Allow me to remove the oddity, then.  What is inside of the backquotes
>is not an object, but an expression.  The backquotes evaluate the expression
>and return the result, stringified.

Isn't that the same behavior as repr()?

-- 
Barnabas T. Rumjuggler's page of dumbth: members.home.net/rumjuggler

Every man is, or hopes to be, an idler.
 -- Samuel Johnson



More information about the Python-list mailing list