bpo-23403: [lib2to3] Make grammar pickling faster by ambv · Pull Request #6491 · python/cpython

@ambv

* Now uses pickle protocol 4

* Doesn't wrap the grammar's `__dict__` in ordered dictionaries anymore as
dictionaries in Python 3.6+ are ordered by default

This still produces deterministic pickles (that hash the same with MD5).
Tested with different PYTHONHASHSEED values.

@ambv ambv changed the title [lib2to3] Make grammar pickling faster bpo-23403: [lib2to3] Make grammar pickling faster

Apr 16, 2018

@ambv ambv deleted the fastgrammarpickle branch

July 12, 2021 11:23