commit | 8805a4dad201473599416b2c265802b8885f69b8 | [log] [tgz] |
---|---|---|
author | Nick Coghlan <ncoghlan@gmail.com> | Sat Nov 07 22:35:17 2020 +1000 |
committer | GitHub <noreply@github.com> | Sat Nov 07 22:35:17 2020 +1000 |
tree | 5d1c8947ac9733025aaa1cb58b62625ac4a6736f | |
parent | ee2549c2ba8bae00f2b2fea8a39c6dfbd1d06520 [diff] |
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