tt = a, b = t

Hernan M. Foffani hfoffani at yahoo.com
Tue Jan 15 18:20:24 EST 2002


> OK, so None is a variable... what I /expected/ from assignment to
None
> was not unlike this perlism:
>
>   my ($a, undef, $b) = $_;
>
> That is, undef takes up that slot to make the compiler happy, but
I'm
> not really interested in $_[1].

some authors use:

    a, _ , b = tuptup

or better yet:

    a, dummy, b = tuptup


>
> Obviously, I have to learn to think /differently/ in Python.

you should think differently when faced at any different
programming language. ;.)

-Hernan








More information about the Python-list mailing list