Lines Matching defs:write
139 /* Initial size of the write buffer of Pickler. */
642 PyObject *write; /* write() method of the output stream. */
1022 assert(self->write != NULL);
1029 result = _Pickle_FastCall(self->write, output);
1052 * self->write is NULL when called via dumps.
1054 if (self->write != NULL) {
1128 self->write = NULL;
1187 if (_PyObject_LookupAttr(file, &_Py_ID(write), &self->write) < 0) {
1190 if (self->write == NULL) {
1192 "file must have a 'write' attribute");
2212 /* proto < 2: write the repr and newline. This is quadratic-time (in
2281 /* Perform direct write of the header and payload of the binary object.
2311 if (bypass_buffer && self->write != NULL) {
2320 /* Stream write the payload into the file without going through the
2330 result = PyObject_CallOneArg(self->write, payload);
2914 /* proto > 0: write in batches of BATCHSIZE. */
2932 /* Only one item to write */
2941 /* More than one item to write */
3157 /* proto > 0: write in batches of BATCHSIZE. */
3180 /* Only one item to write */
3191 /* More than one item to write */
4250 * The first 4 save/write instructions push state_setter and its
4587 if (self->write == NULL) {
4647 Py_XDECREF(self->write);
4662 Py_VISIT(self->write);
4675 Py_CLEAR(self->write);
4711 The *file* argument must have a write() method that accepts a single
4740 if (self->write != NULL)
5365 /* Corrupt or hostile pickle -- we never write one like this */
6548 /* Corrupt or hostile pickle -- we never write one like this. */
7660 The *file* argument must have a write() method that accepts a single