Andrew Breza

11%
Flag icon
Adding elements to a set may change the order of existing elements. That’s because the algorithm becomes less efficient if the hash table is more than two-thirds full, so Python may need to move and resize the table as it grows. When this happens, elements are reinserted and their relative ordering may change.
Andrew Breza
Why?
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview