Demur Rumed added the comment:

mkfu4 implements #27140. It doesn't special case 1-tuples into `BUILD_MAP 1`

It may be easier to have `BUILD_CONST_KEY_MAP 1` peepholed if it's really 
preferable to strength reduce

I'm also noticing that it could've been suggested to go to the extreme with 
BUILD_CONST_KEY_MAP where instead of relying on peepholer to constant fold 
tuple, we implement constant folding const keys entirely there. Just a random 
thought, not a suggestion or anything else

----------
Added file: http://bugs.python.org/file43353/mkfu4.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27095>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to