Home | History | Annotate | Download | only in Modules

Lines Matching defs:PROTO

68     PROTO       = '\x80',
555 int proto; /* Pickle protocol number, >= 0 */
556 int bin; /* Boolean, true if proto > 0 */
557 int framing; /* True when framing is enabled, proto >= 4 */
608 int proto; /* Protocol of the pickle loaded. */
1011 self->proto = 0;
1036 long proto;
1039 proto = DEFAULT_PROTOCOL;
1042 proto = PyLong_AsLong(protocol);
1043 if (proto < 0) {
1044 if (proto == -1 && PyErr_Occurred())
1046 proto = HIGHEST_PROTOCOL;
1048 else if (proto > HIGHEST_PROTOCOL) {
1054 self->proto = (int)proto;
1055 self->bin = proto > 0;
1056 self->fix_imports = fix_imports && proto < 3;
1391 self->proto = 0;
1524 if (self->proto >= 4) {
1787 if (self->proto >= 2) {
1861 if (self->proto >= 2) {
1941 /* proto < 2: write the repr and newline. This is quadratic-time (in
2013 if (self->proto < 3) {
2077 else if (self->proto >= 4) {
2179 if (size <= 0xff && self->proto >= 4) {
2192 else if (self->proto >= 4) {
2319 if (self->proto) {
2338 if (len <= 3 && self->proto >= 2) {
2361 /* proto < 2 and len > 0, or proto >= 2 and len > 3.
2426 if (self->proto == 0) {
2445 /* proto > 0: write in batches of BATCHSIZE. */
2535 assert(self->proto > 0);
2602 if (PyList_CheckExact(obj) && self->proto > 0) {
2656 if (self->proto == 0) {
2682 /* proto > 0: write in batches of BATCHSIZE. */
2786 assert(self->proto > 0);
2862 if (PyDict_CheckExact(obj) && self->proto > 0) {
2912 if (self->proto < 4) {
2977 if (self->proto < 4) {
3188 if (self->proto >= 2) {
3264 if (self->proto >= 4) {
3296 if (self->proto < 3 && self->fix_imports) {
3307 if (self->proto == 3) {
3319 module_name, self->proto);
3338 global_name, self->proto);
3537 if (self->proto >= 2) {
3594 if (self->proto >= 4) {
3917 PyObject *proto;
3918 proto = PyLong_FromLong(self->proto);
3919 if (proto != NULL) {
3920 reduce_value = _Pickle_FastCall(reduce_func, proto);
3981 if (self->proto >= 2) {
3984 header[0] = PROTO;
3985 assert(self->proto >= 0 && self->proto < 256);
3986 header[1] = (unsigned char)self->proto;
3989 if (self->proto >= 4)
6031 * slot state dict too (a proto 2 addition).
6167 /* Just raises an error if we don't know the protocol specified. PROTO
6181 self->proto = i;
6223 self->proto = 0;
6301 OP(PROTO, load_proto)
6410 if (self->proto < 3 && self->fix_imports) {
6475 global = getattribute(module, global_name, self->proto >= 4);
6479 global = getattribute(module, global_name, self->proto >= 4);
6651 self->proto = 0;