On 7/11/10 10:03 PM, Nathan Rice wrote:
> Yeah, I long ago filed the in place place in the same folder as
> strings-as-sequences, all() returning True for an empty iterable and any
> returning True rather than the thing which triggered it.
You know, the latter two I can see an argument for, and could see the
usefulness therein -- though I've never used either like that, but I
consider that chance. I could see the use (and could readily write my
own all/any in such a case, then keep it in my toolbox).
But the first: what?!
for ch in data:
is exceptionally useful. Strings-as-sequences I've used hundreds,
thousands of times. I use it constantly.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog:
http://meh.ixokai.io/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
iQEcBAEBAgAGBQJMOqO/AAoJEKcbwptVWx/l5JAIAKbwN8lf7BeNRZw6O2Ipy8Nb
StvFHOuWSnSBjuRacr6Zr9ARY8BGIbMH3hBQrWXzYtqDrIhv1Z RvntjeqcJkByEj
DRBAzka6ZtxIVeBmpYlmd+IPNEiZhhGLSRjd8W0eeCUKHTlYWC 4GPx/CeU6mAPPy
3szrc6YvWMSm1YK9G6j7Rt4pLfkmnHkn6MObmGZYTUzLpnoKzG 2DNctWamkDwdyM
xNd5mbW8g85xKxWT1GRG6c2M58yP1LJlsra+KlwMWqGtQ8EVxL Br5uQX6gotVvkl
B5EV2btshgULmhtGwxX0PB7G7Uk3JVJK91OWPbL5T1m1X5XqSw Av2BctTuqSaZ4=
=thSD
-----END PGP SIGNATURE-----