Python - Order is now Key

First Learn, Next Unlearn

One such fact learned the hard way by most of us is:

Python built-in dict does not preserve insert order.

As of Python version 3.6 this hash mapping preserves insert order! This even holds for keyword arguments in function parameters. The called code may now process these arguments in the same order as given by the calling code!

The new implementation has even become more compact and faster - you can now eat the cake and keep it too!

This Micro Booklet has a Single Purpose:

  • Bring the attention of the wider community to this disruptive change - starting with Python 3.6.0 (released 2016-DEC-23).

results for ""

    No results matching ""