Lines Matching refs:file
89 /* Parse input from a file and execute it */
301 /* Check whether a file maybe a pyc file: Look at the extension,
302 the file type, and, if we may close it, at the first few bytes. */
317 /* Only look into the file if we are allowed to close it, since
323 /* Read only two bytes of the magic. If the file was opened in
414 /* Try to run a pyc file. First, re-open in binary */
421 fprintf(stderr, "python: Can't reopen .pyc file\n");
887 PyObject *file;
908 PyObject *f = ctx->file;
929 PyObject *f = ctx->file;
953 PyObject *f = ctx->file;
1024 PyObject *f = ctx->file;
1108 PyObject *f = ctx->file;
1135 PyObject *f = ctx->file;
1215 PyObject *f = ctx->file;
1270 PyObject *f = ctx->file;
1377 PyObject *f = ctx->file;
1524 _PyErr_Display(PyObject *file, PyObject *exception, PyObject *value, PyObject *tb)
1526 assert(file != NULL && file != Py_None);
1539 ctx.file = file;
1559 /* Call file.flush() */
1560 PyObject *res = _PyObject_CallMethodNoArgs(file, &_Py_ID(flush));
1562 /* Silently ignore file.flush() error */
1574 PyObject *file = _PySys_GetAttr(tstate, &_Py_ID(stderr));
1575 if (file == NULL) {
1580 if (file == Py_None) {
1583 Py_INCREF(file);
1584 _PyErr_Display(file, exception, value, tb);
1585 Py_DECREF(file);
1754 "Bad magic number in .pyc file");
1768 "Bad code object in .pyc file");