question about True values
Steve Holden
steve at holdenweb.com
Thu Oct 26 20:18:56 EDT 2006
Ben Finney wrote:
> Gabriel Genellina <gagsl-py at yahoo.com.ar> writes:
>
>
>>At Wednesday 25/10/2006 23:29, Paul Rubin wrote:
>>
>>>Steve Holden <steve at holdenweb.com> writes:
>>>I get that iter(()) is True (Python 2.3.4).
>>
No I didn't - that was Paul Rubin.
>>It's False on 2.4.2 - and perhaps it's what one would expect, but
>>since this behavior is not documented anywhere, one should not count
>>on it.
>
>
> Doesn't this fall under "any empty sequence" in the following list of
> evaluates-to-false:
>
> <URL:http://docs.python.org/lib/truth.html>
>
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list