[Python-Dev] Python Enhancement Proposals (PEPs)

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Thu, 13 Jul 2000 20:38:35 +0200


?!ng wrote:
> > Re: open issues: marry([0, 1, 2]) should return [(1,), (2,), (3,)]
> > Otherwise user-code will probably have to special case more often.

as in=20

    # normal case
    for (x,) in zip([0, 1, 2]):
        ...

vs.

    # special case
    for x in zip([0, 1, 2]):
        ...

?

</F>