Lines Matching refs:proto
647 int proto; /* Pickle protocol number, >= 0 */
648 int bin; /* Boolean, true if proto > 0 */
649 int framing; /* True when framing is enabled, proto >= 4 */
705 int proto; /* Protocol of the pickle loaded. */
1129 self->proto = 0;
1157 long proto;
1160 proto = DEFAULT_PROTOCOL;
1163 proto = PyLong_AsLong(protocol);
1164 if (proto < 0) {
1165 if (proto == -1 && PyErr_Occurred())
1167 proto = HIGHEST_PROTOCOL;
1169 else if (proto > HIGHEST_PROTOCOL) {
1175 self->proto = (int)proto;
1176 self->bin = proto > 0;
1177 self->fix_imports = fix_imports && proto < 3;
1205 if (buffer_callback != NULL && self->proto < 5) {
1624 self->proto = 0;
1773 if (self->proto >= 4) {
2058 if (self->proto >= 2) {
2131 if (self->proto >= 2) {
2212 /* proto < 2: write the repr and newline. This is quadratic-time (in
2358 assert(self->proto >= 3);
2379 else if (self->proto >= 4) {
2405 if (self->proto < 3) {
2456 assert(self->proto >= 5);
2482 if (self->proto < 5) {
2518 if (self->proto < 5) {
2674 if (size <= 0xff && self->proto >= 4) {
2687 else if (self->proto >= 4) {
2788 if (self->proto) {
2807 if (len <= 3 && self->proto >= 2) {
2830 /* proto < 2 and len > 0, or proto >= 2 and len > 3.
2895 if (self->proto == 0) {
2914 /* proto > 0: write in batches of BATCHSIZE. */
3004 assert(self->proto > 0);
3077 if (PyList_CheckExact(obj) && self->proto > 0) {
3131 if (self->proto == 0) {
3157 /* proto > 0: write in batches of BATCHSIZE. */
3261 assert(self->proto > 0);
3350 if (PyDict_CheckExact(obj) && self->proto > 0) {
3398 if (self->proto < 4) {
3466 if (self->proto < 4) {
3671 if (self->proto >= 2) {
3747 if (self->proto >= 4) {
3781 if (self->proto < 3 && self->fix_imports) {
3792 if (self->proto == 3) {
3804 module_name, self->proto);
3823 global_name, self->proto);
4027 if (self->proto >= 2) {
4076 if (self->proto >= 4) {
4441 PyObject *proto;
4442 proto = PyLong_FromLong(self->proto);
4443 if (proto != NULL) {
4444 reduce_value = _Pickle_FastCall(reduce_func, proto);
4515 if (self->proto >= 2) {
4519 assert(self->proto >= 0 && self->proto < 256);
4520 header[1] = (unsigned char)self->proto;
4523 if (self->proto >= 4)
6676 * slot state dict too (a proto 2 addition).
6814 self->proto = i;
6856 self->proto = 0;
7049 if (self->proto < 3 && self->fix_imports) {
7109 global = getattribute(module, global_name, self->proto >= 4);
7283 self->proto = 0;