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 eric.araujo
Recipients Arfrever, eric.araujo, georg.brandl, meador.inge, ncoghlan, sjdv1982
Date 2011-11-21.14:55:39
SpamBayes Score 1.48205e-06
Marked as misclassified No
Message-id <1321887340.07.0.316992070666.issue12618@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the patch Meador, I hadn’t realized we had no tests for py_compile (it is however used in test_import and test_compileall).  I think it would be nice to commit the tests first (except for the one that’s the object of this bug report) in order to have a baseline, and then see about fixing this bug.  I’ll do that in a few days if nobody objects.

I’m not sure there would be no negative side-effects to using os.path.abspath; we don’t know what people do with symlinks and relative paths out there, so I’d prefer adding a safe special case* rather than always calling abspath.  What do you think?


* Instead of using len, something like this would be clear IMO:

      if parent:  # empty string means current directory, skip creating the dir
          os.makedirs(parent)
History
Date User Action Args
2011-11-21 14:55:40eric.araujosetrecipients: + eric.araujo, georg.brandl, ncoghlan, Arfrever, meador.inge, sjdv1982
2011-11-21 14:55:40eric.araujosetmessageid: <1321887340.07.0.316992070666.issue12618@psf.upfronthosting.co.za>
2011-11-21 14:55:39eric.araujolinkissue12618 messages
2011-11-21 14:55:39eric.araujocreate