A small inconsistency in syntax?

Guido van Rossum guido at python.org
Thu Oct 25 23:33:09 EDT 2001


Greg Ewing <greg at cosc.canterbury.ac.nz> writes:
> In the case in question, i.e.
> 
>    () = ()
> 
> the patterns clearly do match. And, every name in
> the LHS has a corresponding value in the RHS. The
> numbers of both these things happen to be 0, but
> so what?
> 
> I think Michael Abbot is quite right. There's no
> reason this shouldn't be a legitimate, albeit
> degenerate, case of tuple unpacking.

FWIW, I agree.  I just never thought of this.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list