None & Ellipsis

Fredrik Lundh effbot at telia.com
Mon Feb 21 13:40:55 EST 2000


Gerrit Holl <gerrit.holl at pobox.com> wrote:
> For sequence unpacking:
>
> >>> t=('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i')
> >>> t1, t2, None, t4, t5, None, None, t8, None = t
> >>> None
> 'i'
>
> I want to use None to say "ignore this".

how about using "none" instead?

or "nil", "dummy", "foo", "x", etc ;-)

(also see my other post)

</F>





More information about the Python-list mailing list