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/
signature.asc
Description: OpenPGP digital signature
-- http://mail.python.org/mailman/listinfo/python-list