➜

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.

作者 steve.dower
收信人 chrullrich, paul.moore, steve.dower, tim.golden, zach.ware
日期 2017-09-05.17:56:46
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1504634206.67.0.836179614726.issue31349@psf.upfronthosting.co.za>
In-reply-to
内容
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.)
历史
日期 用户 动作 参数
2017-09-05 17:56:46steve.dower修改recipients: + steve.dower, paul.moore, tim.golden, zach.ware, chrullrich
2017-09-05 17:56:46steve.dower修改messageid: <1504634206.67.0.836179614726.issue31349@psf.upfronthosting.co.za>
2017-09-05 17:56:46steve.dower链接issue31349 messages
2017-09-05 17:56:46steve.dower创建