Elmo Mäntynen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> This is the case:
> 
> 
>>>>n=(100,) tuple(*n)
> 
> 
> Traceback (most recent call last):
>   File "<pyshell#31>", line 1, in -toplevel-
>     tuple(*n)
> TypeError: iteration over non-sequence

n is a sequence. *n correctly expands. The error is that 100 is not a 
sequence; tuple() requires a sequence or an iterator. tuple(*n) is 
equivalent to tuple(100).

-- 
Robert Kern
[EMAIL PROTECTED]

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to