This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients andrewjcg, brett.cannon, vstinner
Date 2012-10-05.00:16:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349396190.31.0.984210608868.issue16139@psf.upfronthosting.co.za>
In-reply-to
Content
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;
    }
History
Date User Action Args
2012-10-05 00:16:31vstinnersetrecipients: + vstinner, brett.cannon, andrewjcg
2012-10-05 00:16:30vstinnersetmessageid: <1349396190.31.0.984210608868.issue16139@psf.upfronthosting.co.za>
2012-10-05 00:16:30vstinnerlinkissue16139 messages
2012-10-05 00:16:28vstinnercreate