Operator Precedence/Boolean Logic

Steven D'Aprano steve at pearwood.info
Thu Jun 30 13:22:37 EDT 2016

On Fri, 1 Jul 2016 02:01 am, Rustom Mody wrote:

> On Thursday, June 30, 2016 at 5:10:41 AM UTC+5:30, Steven D'Aprano wrote:
>> On Wed, 29 Jun 2016 11:30 pm, Rustom Mody wrote:
>> > The other answers -- graphs and automata -- are questionable and/or
>> > wrong
>> > 
>> > You may wish to think about them again?
>> You may wish to justify your assertion.


Okay, if you think that automata cannot be empty, I'll accept that. In that
case, then I'll change my answer and say that __bool__ for automata should
simply return True. All automata should be truthy.

“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