Vladimir

3%
Flag icon
Because of its fixed length, a tuple instance is allocated the exact memory space it needs. Instances of list, on the other hand, are allocated with room to spare, to amortize the cost of future appends.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview