[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Marius Gedminas
New submission from Marius Gedminas : Python 3.8 miscompiles the following code: $ cat /tmp/wat.py enable_debug = False if not enable_debug or not __debug__: print("you shall not pass!") $ python3.7 /tmp/wat.py you shall not pass! $ python3.8 /tmp/wat.py (no

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13929 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14071 ___ Python tracker __

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 05f831865545b08c9a21cfb7773af58b76ec64cb by Pablo Galindo in branch 'master': bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071) https://github.com/python/cpython/commit/05f831865545b08c9a21cfb7773af58b76ec64cb

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +13930 pull_request: https://github.com/python/cpython/pull/14072 ___ Python tracker ___ __

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +13931 pull_request: https://github.com/python/cpython/pull/14073 ___ Python tracker ___ ___

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread miss-islington
miss-islington added the comment: New changeset 7cd581a6bf82309b3c9b9251c54067d442732485 by Miss Islington (bot) in branch '3.8': bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071) https://github.com/python/cpython/commit/7cd581a6bf82309b3c9b9251c54067d442732485 --

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks, Marius for the report! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37269] Python 3.8b1 miscompiles conditional expressions containing __debug__

2019-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5292179afc6fd0dc533add054d4790773c9766d0 by Pablo Galindo in branch '3.7': [3.7] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071) (GH-14073) https://github.com/python/cpython/commit/5292179afc6fd0dc533add054d4