Message172032
Python 3.2 logs an error to stderr (if Python is started in verbose mode) if the directory and/or the pyc file cannot be created, and continue.
#ifdef MS_WINDOWS
if (_mkdir(cpathname) < 0 && errno != EEXIST) {
#else
if (mkdir(cpathname, dirmode) < 0 && errno != EEXIST) {
#endif
*dirpath = saved;
if (Py_VerboseFlag)
PySys_WriteStderr(
"# cannot create cache dir %s\n", cpathname);
return;
}
*dirpath = saved;
fp = open_exclusive(cpathname, mode);
if (fp == NULL) {
if (Py_VerboseFlag)
PySys_WriteStderr(
"# can't create %s\n", cpathname);
return;
} |
|
Date |
User |
Action |
Args |
2012-10-05 00:16:31 | vstinner | set | recipients:
+ vstinner, brett.cannon, andrewjcg |
2012-10-05 00:16:30 | vstinner | set | messageid: <1349396190.31.0.984210608868.issue16139@psf.upfronthosting.co.za> |
2012-10-05 00:16:30 | vstinner | link | issue16139 messages |
2012-10-05 00:16:28 | vstinner | create | |
|