Many operations involving two literals are optimized (to a certain level). So 
it sort of surprises me that literal comparisons are not optimized and literal 
contains only convert the right operand to a constant if possible. I'd like to 
implement optimizations for these especially for the literal contains. There is 
a TODO in the ast optimizer for literal comparisons as well, and that's another 
reason I would like to have these added.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/5I2GXLMVZ6OOLACL2BB2ER4L2RKEGWIJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to