Aw: Try: Except: evaluates to True every time
Steve D'Aprano
steve+python at pearwood.info
Sun Nov 5 08:59:11 EST 2017
On Sun, 5 Nov 2017 09:53 pm, Karsten Hilbert wrote:
> On Sun, Nov 05, 2017 at 11:28:44AM +1100, Steve D'Aprano wrote:
>
>> > Try in an interactive interpreter:
>> >
>> > python> "a string" is True
>>
>> Did you try that yourself?
>
> Yes, eventually, which is why I corrected myself publicly.
Oops, didn't see that.
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
More information about the Python-list
mailing list