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 scoder
Recipients brett.cannon, pitrou, scoder
Date 2013-09-27.16:00:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380297636.45.0.339184347104.issue19108@psf.upfronthosting.co.za>
In-reply-to
Content
In changeset 88b6ef9aa9e9, a new function ported_lib() was added that crashes on error reporting in Py3 because it tries to do this:

    raise RuntimeError("Benchmark died: " + err)

"err" is a bytes object that comes straight from the subprocess pipe.

The reason why I noticed this is because the new function assumes that it can run "python" with the "-c" option and pass an arbitrary Python command string. That may not be true if it is actually executing some wrapper script (as we do for Cython, for example). Currently, the only requirement for the external Python command is that it can run a Python script that it receives on the command line. We shouldn't unnecessarily extend that interface.

I'm not sure how to best fix this, but the only way I can currently see is to run an external Python script that prints the requested information.
History
Date User Action Args
2013-09-27 16:00:36scodersetrecipients: + scoder, brett.cannon, pitrou
2013-09-27 16:00:36scodersetmessageid: <1380297636.45.0.339184347104.issue19108@psf.upfronthosting.co.za>
2013-09-27 16:00:36scoderlinkissue19108 messages
2013-09-27 16:00:36scodercreate