Not anymore in Python 3.4 which has PEP 3154 and Pickle 4.0
https://www.python.org/dev/peps/pep-3154/
But you need to say you want to use version 4 of the protocol:
https://docs.python.org/3/library/pickle.html
pickle.dump(d, open("file", 'w'), protocol=4)
More Related Contents:
- Saving an Object (Data persistence)
- Python multiprocessing PicklingError: Can’t pickle
- Saving and loading multiple objects in pickle file?
- How can I use pickle to save a dict (or any other Python object)?
- Multiprocessing: How to use Pool.map on a function defined in a class?
- Storing Python dictionaries
- Using pickle.dump – TypeError: must be str, not bytes
- Can Python pickle lambda functions?
- Unpickling a python 2 object with python 3
- Unable to load files using pickle and multiple modules
- How can I pickle a dynamically created nested class in python?
- Can’t pickle defaultdict
- Python pickling after changing a module’s directory
- How to read pickle file?
- Preserve custom attributes when pickling subclass of numpy array
- installing cPickle with python 3.5
- What causes the error “_pickle.UnpicklingError: invalid load key, ‘ ‘.”?
- What is faster – Loading a pickled dictionary object or Loading a JSON file – to a dictionary? [closed]
- multiprocessing.Pool – PicklingError: Can’t pickle : attribute lookup thread.lock failed
- Is pickle file of python cross-platform?
- Saving and loading objects and using pickle
- ImportError: No module named ‘pandas.indexes’
- What is the difference between rb and r+b modes in file objects [duplicate]
- pickle – putting more than 1 object in a file? [duplicate]
- pickle.load() raising EOFError in Windows
- Python Pickling Dictionary EOFError
- Common use-cases for pickle in Python
- Dump a list in a pickle file and retrieve it back later [closed]
- How to hash a large object (dataset) in Python?
- cProfile causes pickling error when running multiprocessing Python code