Lines Matching defs:protocol

66 "Pickler(file, protocol=None, fix_imports=True, buffer_callback=None)\n"
71 "The optional *protocol* argument tells the pickler to use the given\n"
72 "protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default\n"
73 "protocol is 4. It was introduced in Python 3.4, and is incompatible\n"
76 "Specifying a negative protocol version selects the highest protocol\n"
77 "version supported. The higher the protocol used, the more recent the\n"
85 "If *fix_imports* is True and protocol is less than 3, pickle will try\n"
97 "It is an error if *buffer_callback* is not None and *protocol*\n"
102 PyObject *protocol, int fix_imports,
109 static const char * const _keywords[] = {"file", "protocol", "fix_imports", "buffer_callback", NULL};
116 PyObject *protocol = Py_None;
129 protocol = fastargs[1];
145 return_value = _pickle_Pickler___init___impl((PicklerObject *)self, file, protocol, fix_imports, buffer_callback);
301 "The protocol version of the pickle is detected automatically, so no\n"
302 "protocol argument is needed. Bytes past the pickled object\'s\n"
457 "dump($module, /, obj, file, protocol=None, *, fix_imports=True,\n"
463 "This is equivalent to ``Pickler(file, protocol).dump(obj)``, but may\n"
466 "The optional *protocol* argument tells the pickler to use the given\n"
467 "protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default\n"
468 "protocol is 4. It was introduced in Python 3.4, and is incompatible\n"
471 "Specifying a negative protocol version selects the highest protocol\n"
472 "version supported. The higher the protocol used, the more recent the\n"
480 "If *fix_imports* is True and protocol is less than 3, pickle will try\n"
486 "*buffer_callback* is not None and *protocol* is None or smaller than 5.");
493 PyObject *protocol, int fix_imports,
500 static const char * const _keywords[] = {"obj", "file", "protocol", "fix_imports", "buffer_callback", NULL};
506 PyObject *protocol = Py_None;
520 protocol = args[2];
540 return_value = _pickle_dump_impl(module, obj, file, protocol, fix_imports, buffer_callback);
547 "dumps($module, /, obj, protocol=None, *, fix_imports=True,\n"
553 "The optional *protocol* argument tells the pickler to use the given\n"
554 "protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default\n"
555 "protocol is 4. It was introduced in Python 3.4, and is incompatible\n"
558 "Specifying a negative protocol version selects the highest protocol\n"
559 "version supported. The higher the protocol used, the more recent the\n"
562 "If *fix_imports* is True and *protocol* is less than 3, pickle will\n"
568 "*buffer_callback* is not None and *protocol* is None or smaller than 5.");
574 _pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol,
581 static const char * const _keywords[] = {"obj", "protocol", "fix_imports", "buffer_callback", NULL};
586 PyObject *protocol = Py_None;
599 protocol = args[1];
619 return_value = _pickle_dumps_impl(module, obj, protocol, fix_imports, buffer_callback);
635 "The protocol version of the pickle is detected automatically, so no\n"
636 "protocol argument is needed. Bytes past the pickled object\'s\n"
744 "The protocol version of the pickle is detected automatically, so no\n"
745 "protocol argument is needed. Bytes past the pickled object\'s\n"