Lines Matching refs:PyObject
38 PyObject *archive; /* pathname of the Zip archive */
39 PyObject *prefix; /* file prefix: "a/sub/directory/" */
40 PyObject *files; /* dict with file info {path: toc_entry} */
43 static PyObject *ZipImportError;
44 static PyObject *zip_directory_cache = NULL;
47 static PyObject *read_directory(const char *archive);
48 static PyObject *get_data(const char *archive, PyObject *toc_entry);
49 static PyObject *get_module_code(ZipImporter *self, char *fullname,
61 zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds)
126 PyObject *files;
170 zipimporter_traverse(PyObject *obj, visitproc visit, void *arg)
184 Py_TYPE(self)->tp_free((PyObject *)self);
187 static PyObject *
284 static PyObject *
285 zipimporter_find_module(PyObject *obj, PyObject *args)
288 PyObject *path = NULL;
304 return (PyObject *)self;
308 static PyObject *
309 zipimporter_load_module(PyObject *obj, PyObject *args)
312 PyObject *code, *mod, *dict;
332 if (PyDict_SetItemString(dict, "__loader__", (PyObject *)self) != 0)
338 PyObject *pkgpath, *fullpath;
373 static PyObject *
374 zipimporter_get_filename(PyObject *obj, PyObject *args)
377 PyObject *code;
396 static PyObject *
397 zipimporter_is_package(PyObject *obj, PyObject *args)
418 static PyObject *
419 zipimporter_get_data(PyObject *obj, PyObject *args)
426 PyObject *toc_entry;
459 static PyObject *
460 zipimporter_get_code(PyObject *obj, PyObject *args)
471 static PyObject *
472 zipimporter_get_source(PyObject *obj, PyObject *args)
475 PyObject *toc_entry;
705 static PyObject *
708 PyObject *files = NULL;
783 PyObject *t;
884 static PyObject *
888 PyObject *zlib;
889 PyObject *decompress;
915 static PyObject *
916 get_data(const char *archive, PyObject *toc_entry)
918 PyObject *raw_data = NULL, *data, *decompress;
1054 static PyObject *
1055 unmarshal_code(const char *pathname, PyObject *data, time_t mtime)
1057 PyObject *code;
1103 static PyObject *
1104 normalize_line_endings(PyObject *source)
1107 PyObject *fixed_source;
1139 static PyObject *
1140 compile_source(char *pathname, PyObject *source)
1142 PyObject *code, *fixed_source;
1180 PyObject *toc_entry;
1201 static PyObject *
1203 time_t mtime, PyObject *toc_entry)
1205 PyObject *data, *code;
1230 static PyObject *
1234 PyObject *toc_entry;
1246 PyObject *code = NULL;
1302 PyObject *mod;
1339 (PyObject *)&ZipImporter_Type) < 0)