On Saturday, August 20, 2016 at 10:38:34 AM UTC+12, Chris Angelico wrote:
>
> On Sat, Aug 20, 2016 at 8:31 AM, Lawrence D’Oliveiro wrote:
>>
>> There is no short-cut evaluation when constructing tuples and lists.
> 
> I'm not sure how that would make difference in these examples. The
> three parts are independent - the one place where short-circuiting is
> important is indeed short-circuited.

That often is not the case, e.g. 
<https://github.com/ldo/qahirah/blob/master/qahirah.py>:

    assert \
        (
            len(self.points) == 0
        or
                not self.points[0].off
            and
                (closed or not self.points[-1].off)
        )
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to