[issue42899] Regression __bool__ if AttributeError is raised (Possible regression introduced by bpo-42615)

2021-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure that it should be fixed. We already cut corners in similar cases and did this for years, and it always was okay. In the following example bool(a) is only called once: if a and b: f() 1 0 LOAD_NAME0 (a)

[issue42899] Regression __bool__ if AttributeError is raised (Possible regression introduced by bpo-42615)

2021-01-12 Thread STINNER Victor
Change by STINNER Victor : -- title: Possible regression introduced by bpo-42615 -> Regression __bool__ if AttributeError is raised (Possible regression introduced by bpo-42615) ___ Python tracker __