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 dhduvall
Recipients Oliver.Jeeves, dhduvall, dstufft, eric.araujo, tarek
Date 2014-09-02.21:55:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409694958.33.0.596936536324.issue7918@psf.upfronthosting.co.za>
In-reply-to
Content
As a distribution maintainer of several Python modules, I've run into this bug twice in the past week.  In each case, the python file in question had a SyntaxError and failed to compile, but the error just scrolled past in a large log and was missed because no failure occurred until we attempted to package the result, and the .pyc files were missing.

While we managed to track the problem down fairly easily in both cases, if we only had folks working on the problem that didn't have lots of experience in tracking down build issues, this could have wasted a lot of otherwise valuable engineering time.

I understand the desire to be able to package files that fail to compile, but having that be the default seems to me like it fails basic expectations, even given how long this bug has been around.  I can't imagine that the number of deliberately-broken python files is particularly large compared to the number of python files that might get broken accidentally (or files that are "broken" for one version of python but not another) and so being required to maintain an exception list doesn't seem unreasonable.  (Neither does some amount of transition period -- one or two minor releases of Python? -- between the introduction of the mechanism and the change of the default.)

Would people be interested in a patch to that effect?
History
Date User Action Args
2014-09-02 21:55:58dhduvallsetrecipients: + dhduvall, tarek, eric.araujo, Oliver.Jeeves, dstufft
2014-09-02 21:55:58dhduvallsetmessageid: <1409694958.33.0.596936536324.issue7918@psf.upfronthosting.co.za>
2014-09-02 21:55:58dhduvalllinkissue7918 messages
2014-09-02 21:55:57dhduvallcreate