Optimize away creation of immediately discarded tuples #99077
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
performance
Performance or resource usage
This comes from a discussion about whether to issue a syntax warning for one-tuples without parentheses.
Regardless of whether a warning is issued, the following code:
Creates a tuple then discards it.
we could eliminate the creation of the tuple:
The text was updated successfully, but these errors were encountered: