For review: PEP 308 - If-then-else expression

Jp Calderone exarkun at intarweb.us
Mon Feb 10 01:24:01 CET 2003


On Mon, Feb 10, 2003 at 11:06:17AM +1100, Anthony Baxter wrote:
> 
> 
> > 
> >         i -> [ v_0, v_1, v_2, ... ]
> > which would pick v_i and evaluate that.
> 
> On the other hand, I don't like this. If you need to do something like 
> this, why not just
> 
>           [ v_0, v_1, v_2, ... ][i]  ?

  I believe it is being proposed that in the former, the list would be
"special" and evaluated lazily.

  Jp

-- 
 up 1 day, 4:28, 2 users, load average: 0.40, 0.36, 0.25
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030209/9085f7e4/attachment.sig>


More information about the Python-list mailing list