How do I know which versions of brine support a particular version of Python?

I have a script that requires Python 2.6. I will add a coarse pickled database to the next version and I want to use the fastest version of pickling. How do I know which version of etching is available in each version of Python 2.6 and later?

+5
source share
1 answer

Same:

>>> import pickle
>>> pickle.compatible_formats
['1.0', '1.1', '1.2', '1.3', '2.0']

Edit

I think it's safe to rely on the latest documentation. For example, the documentation picket for Python 3.2.1 reads:

There are currently 4 different protocols that can be used for etching.

  • 0 Python.

  • 1 - , Python.

  • 2 Python 2.3. .

  • 3 Python 3.0. Python 2.x pickle.
    , , .

, !

, , Python 2.6-2.7 Pickle <= 2.0 Python 3.0-3.2 Pickle <= 3.0.

+5

All Articles