Author vstinner
Recipients Alex.Willmer, christian.heimes, pitrou, vstinner
Date 2019-06-12.14:02:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
FYI pyperformance is affected by this issue:

vstinner@apu$ env/bin/python ~/prog/python/pyperformance/pyperformance/benchmarks/ unpickle --pure-python -v -p3  
Traceback (most recent call last):
  File "/home/vstinner/prog/python/pyperformance/pyperformance/benchmarks/", line 287, in <module>
    import pickle
  File "/home/vstinner/prog/python/master/Lib/", line 39, in <module>
    from _pickle import PickleBuffer
ModuleNotFoundError: import of _pickle halted; None in sys.modules

It is no longer possible to benchmark the pure Python implement of pickle.

--pure-python uses this code path:

def is_module_accelerated(module):
    return getattr(pickle.Pickler, '__module__', '<jython>') == 'pickle'


        if six.PY3:
            sys.modules['_pickle'] = None
        import pickle
        if not is_module_accelerated(pickle):
            raise RuntimeError("Unexpected C accelerators for pickle")

Should I remove the benchmark?
Date User Action Args
2019-06-12 14:02:18vstinnersetrecipients: + vstinner, pitrou, christian.heimes, Alex.Willmer
2019-06-12 14:02:18vstinnersetmessageid: <>
2019-06-12 14:02:18vstinnerlinkissue37210 messages
2019-06-12 14:02:17vstinnercreate