@@ -4647,8 +4647,9 @@ _pickle.Pickler.__init__
4647
4647
This takes a binary file for writing a pickle data stream.
4648
4648
4649
4649
The optional *protocol* argument tells the pickler to use the given
4650
- protocol; supported protocols are 0, 1, 2, 3 and 4. The default
4651
- protocol is 3; a backward-incompatible protocol designed for Python 3.
4650
+ protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default
4651
+ protocol is 4. It was introduced in Python 3.4, and is incompatible
4652
+ with previous versions.
4652
4653
4653
4654
Specifying a negative protocol version selects the highest protocol
4654
4655
version supported. The higher the protocol used, the more recent the
@@ -4680,7 +4681,7 @@ static int
4680
4681
_pickle_Pickler___init___impl (PicklerObject * self , PyObject * file ,
4681
4682
PyObject * protocol , int fix_imports ,
4682
4683
PyObject * buffer_callback )
4683
- /*[clinic end generated code: output=0abedc50590d259b input=bb886e00443a7811 ]*/
4684
+ /*[clinic end generated code: output=0abedc50590d259b input=a7c969699bf5dad3 ]*/
4684
4685
{
4685
4686
_Py_IDENTIFIER (persistent_id );
4686
4687
_Py_IDENTIFIER (dispatch_table );
@@ -7633,8 +7634,8 @@ This is equivalent to ``Pickler(file, protocol).dump(obj)``, but may
7633
7634
be more efficient.
7634
7635
7635
7636
The optional *protocol* argument tells the pickler to use the given
7636
- protocol; supported protocols are 0, 1, 2, 3 and 4 . The default
7637
- protocol is 4. It was introduced in Python 3.4, it is incompatible
7637
+ protocol; supported protocols are 0, 1, 2, 3, 4 and 5 . The default
7638
+ protocol is 4. It was introduced in Python 3.4, and is incompatible
7638
7639
with previous versions.
7639
7640
7640
7641
Specifying a negative protocol version selects the highest protocol
@@ -7660,7 +7661,7 @@ static PyObject *
7660
7661
_pickle_dump_impl (PyObject * module , PyObject * obj , PyObject * file ,
7661
7662
PyObject * protocol , int fix_imports ,
7662
7663
PyObject * buffer_callback )
7663
- /*[clinic end generated code: output=706186dba996490c input=cfdcaf573ed6e46c ]*/
7664
+ /*[clinic end generated code: output=706186dba996490c input=5ed6653da99cd97c ]*/
7664
7665
{
7665
7666
PicklerObject * pickler = _Pickler_New ();
7666
7667
@@ -7703,8 +7704,8 @@ _pickle.dumps
7703
7704
Return the pickled representation of the object as a bytes object.
7704
7705
7705
7706
The optional *protocol* argument tells the pickler to use the given
7706
- protocol; supported protocols are 0, 1, 2, 3 and 4 . The default
7707
- protocol is 4. It was introduced in Python 3.4, it is incompatible
7707
+ protocol; supported protocols are 0, 1, 2, 3, 4 and 5 . The default
7708
+ protocol is 4. It was introduced in Python 3.4, and is incompatible
7708
7709
with previous versions.
7709
7710
7710
7711
Specifying a negative protocol version selects the highest protocol
@@ -7724,7 +7725,7 @@ into *file* as part of the pickle stream. It is an error if
7724
7725
static PyObject *
7725
7726
_pickle_dumps_impl (PyObject * module , PyObject * obj , PyObject * protocol ,
7726
7727
int fix_imports , PyObject * buffer_callback )
7727
- /*[clinic end generated code: output=fbab0093a5580fdf input=9f334d535ff7194f ]*/
7728
+ /*[clinic end generated code: output=fbab0093a5580fdf input=e543272436c6f987 ]*/
7728
7729
{
7729
7730
PyObject * result ;
7730
7731
PicklerObject * pickler = _Pickler_New ();
0 commit comments