diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2020-11-07 22:35:17 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 22:35:17 +1000 |
commit | 8805a4dad201473599416b2c265802b8885f69b8 (patch) | |
tree | 5d1c8947ac9733025aaa1cb58b62625ac4a6736f /Lib/contextlib.py | |
parent | ee2549c2ba8bae00f2b2fea8a39c6dfbd1d06520 (diff) | |
download | cpython-git-8805a4dad201473599416b2c265802b8885f69b8.tar.gz |
bpo-42282: Fold constants inside named expressions (GH-23190)
* The AST optimiser wasn't descending into named expressions, so
any constant subexpressions weren't being folded at compile time
* Remove "default:" clauses inside the AST optimiser code to reduce the
risk of similar bugs passing unnoticed in future compiler changes
Diffstat (limited to 'Lib/contextlib.py')
0 files changed, 0 insertions, 0 deletions