Core and builtins
-----------------
+- Patch #1442: properly report exceptions when the PYTHONSTARTUP file
+ cannot be executed.
+
- The compilation of a class nested in another class used to leak one
reference on the outer class name.
(void) PyRun_SimpleFileExFlags(fp, startup, 0, cf);
PyErr_Clear();
fclose(fp);
+ } else {
+ int save_errno;
+ save_errno = errno;
+ PySys_WriteStderr("Could not open PYTHONSTARTUP\n");
+ errno = save_errno;
+ PyErr_SetFromErrnoWithFilename(PyExc_IOError,
+ startup);
+ PyErr_Print();
+ PyErr_Clear();
}
}
}