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 steve.dower
Recipients chrullrich, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-09-05.17:56:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504634206.67.0.836179614726.issue31349@psf.upfronthosting.co.za>
In-reply-to
Content
You're right, though I disagree with the fix as that would cause the process filename to be ignored.

A correct fix would check whether the name has been set explicitly and if so, either use it as-is (if absolute) or get the actual name and use its directory (since there's no point searching PATH as we'll likely just find some other executable and hence not be able to initialize).

As this is a subtle change in behaviour, we should only do it for 3.7. For 3.6 and earlier I'd suggest naming your executable the name that you'd like it to be, as that will work fine in this case and anywhere else we assume that the process name is the name of the process. (The fact that the behaviour is wrong in earlier versions is overridden IMO by the fact that it has been wrong for a decade and nobody has complained, and there is a trivial workaround.)
History
Date User Action Args
2017-09-05 17:56:46steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, chrullrich
2017-09-05 17:56:46steve.dowersetmessageid: <1504634206.67.0.836179614726.issue31349@psf.upfronthosting.co.za>
2017-09-05 17:56:46steve.dowerlinkissue31349 messages
2017-09-05 17:56:46steve.dowercreate