Lines Matching refs:file
32 "Write a pickled representation of the given object to the open file.");
66 "Pickler(file, protocol=None, fix_imports=True, buffer_callback=None)\n"
69 "This takes a binary file for writing a pickle data stream.\n"
80 "The *file* argument must have a write() method that accepts a single\n"
81 "bytes argument. It can thus be a file object opened for binary\n"
90 "serialized into *file* as part of the pickle stream.\n"
101 _pickle_Pickler___init___impl(PicklerObject *self, PyObject *file,
109 static const char * const _keywords[] = {"file", "protocol", "fix_imports", "buffer_callback", NULL};
115 PyObject *file;
124 file = fastargs[0];
145 return_value = _pickle_Pickler___init___impl((PicklerObject *)self, file, protocol, fix_imports, buffer_callback);
211 "Read a pickled object representation from the open file object given\n"
295 "Unpickler(file, *, fix_imports=True, encoding=\'ASCII\', errors=\'strict\',\n"
299 "This takes a binary file for reading a pickle data stream.\n"
305 "The argument *file* must have two methods, a read() method that takes\n"
307 "arguments. Both methods should return bytes. Thus *file* can be a\n"
308 "binary file object opened for reading, an io.BytesIO object, or any\n"
321 _pickle_Unpickler___init___impl(UnpicklerObject *self, PyObject *file,
329 static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", "buffers", NULL};
335 PyObject *file;
345 file = fastargs[0];
396 return_value = _pickle_Unpickler___init___impl((UnpicklerObject *)self, file, fix_imports, encoding, errors, buffers);
457 "dump($module, /, obj, file, protocol=None, *, fix_imports=True,\n"
461 "Write a pickled representation of obj to the open file object file.\n"
463 "This is equivalent to ``Pickler(file, protocol).dump(obj)``, but may\n"
475 "The *file* argument must have a write() method that accepts a single\n"
476 "bytes argument. It can thus be a file object opened for binary\n"
485 "into *file* as part of the pickle stream. It is an error if\n"
492 _pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file,
500 static const char * const _keywords[] = {"obj", "file", "protocol", "fix_imports", "buffer_callback", NULL};
505 PyObject *file;
515 file = args[1];
540 return_value = _pickle_dump_impl(module, obj, file, protocol, fix_imports, buffer_callback);
567 "into *file* as part of the pickle stream. It is an error if\n"
626 "load($module, /, file, *, fix_imports=True, encoding=\'ASCII\',\n"
630 "Read and return an object from the pickle data stored in a file.\n"
632 "This is equivalent to ``Unpickler(file).load()``, but may be more\n"
639 "The argument *file* must have two methods, a read() method that takes\n"
641 "arguments. Both methods should return bytes. Thus *file* can be a\n"
642 "binary file object opened for reading, an io.BytesIO object, or any\n"
658 _pickle_load_impl(PyObject *module, PyObject *file, int fix_imports,
666 static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", "buffers", NULL};
670 PyObject *file;
680 file = args[0];
731 return_value = _pickle_load_impl(module, file, fix_imports, encoding, errors, buffers);