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
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.
However, while it doesn't return True (as I mistakenly
On Sun, 5 Nov 2017 03:07 am, Karsten Hilbert wrote:
> Try in an interactive interpreter:
>
>python> "a string" is True
Did you try that yourself?
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
--
Try in an interactive interpreter:
python> "a string" is True
Karsten
> Gesendet: Samstag, 04. November 2017 um 16:31 Uhr
> Von: "brandon wallace"
> An: python-list@python.org
> Betreff: Try: Except: evaluates to True every time
>
>
> I have this code that tests a server to