-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mar 5, 2007, at 2:07 PM, Ka-Ping Yee wrote:

> One possibility for making a next() built-in more useful:
>
>     Just like getattr, two-argument next(iter, sentinel)
>     returns sentinel if StopException is caught.
>
> If you've used .next() explicitly, would this be handy?

Yes.
- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBRexrgXEjvBPtnXfVAQLjsAP/UxgXDQ37pLPvIVcE8RouqZVwWAUZtYef
d0vubjBFXfaT1aBpnrk0YLcg55Xqd/+LkOXl5UZdO8FYyi4ucGRAZ8Kz1P1T9g+k
TbTumxCa9Qzj8ockoJv7vJ3+K1jOS0A05hjeOq93jROTWtdyxqcBUDvTY2lQn34J
ZK5L0KFwz+E=
=qjFx
-----END PGP SIGNATURE-----
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to