[Python-checkins] python/dist/src/Doc/tut tut.tex,1.180,1.181
Skip Montanaro
skip@pobox.com
Wed, 7 May 2003 10:59:24 -0500
Thomas> On Wed, May 07, 2003 at 08:29:14AM -0700, montanaro@users.sourceforge.net wrote:
>> ! >>> # The argument to repr() may be any Python object:
>> ! ... repr(x, y, ('spam', 'eggs'))
>> ! "(32.5, 40000, ('spam', 'eggs'))"
Thomas> Close, but no cigar:
>>>> repr(x, y, ('spam', 'eggs'))
Thomas> Traceback (most recent call last):
Thomas> File "<stdin>", line 1, in ?
Thomas> TypeError: repr() takes exactly one argument (3 given)
Whoops! Yeah, Fred said something about a missing paren, but I thought he
meant missing right paren. I'll fix it in a jiff.
Skip