• Łukasz Langa's avatar
    [lib2to3] Make grammar pickling faster (#6491) · 76618061
    Łukasz Langa yazdı
    * 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.
    76618061
grammar.py 5.41 KB