New submission from theeshallnotknowethme <nohackingofkrow...@gmail.com>:
Most operations with literals are optimized as well, so why shouldn't the comparison/contain operators be? I created a new bug report for it because of this fact and the TODO in the `fold_compare` function in `Python/ast_opt.c`. ---------- components: Interpreter Core messages: 407114 nosy: February291948 priority: normal severity: normal status: open title: Optimize literal comparisons and contains type: performance versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45907> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com