Vladimir

3%
Flag icon
To evaluate a tuple literal, the Python compiler generates bytecode for a tuple constant in one operation; but for a list literal, the generated bytecode pushes each element as a separate constant to the data stack, and then builds the list.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview