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 mariocj89
Recipients jaraco, mariocj89, ncoghlan, steven.daprano, vstinner
Date 2020-12-16.10:22:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608114144.71.0.944348492215.issue42654@roundup.psfhosted.org>
In-reply-to
Content
> Shouldn't this be discussed on Python-Ideas? I'm pretty sure this is a big enough change that it will need a PEP.

Indeed, I wanted to see if there was interest in the feature. That is probably a better place to start.

> If you need code run on startup, can't you just put it in the PYTHONSTARTUP file?

My understanding is that PYTHONSTARTUP is only for interactive executions. Additionally, it suffers from the same issue as sitecustomize. It is a single file that won't be a real substitute for code execution in pth files.
History
Date User Action Args
2020-12-16 10:22:24mariocj89setrecipients: + mariocj89, jaraco, ncoghlan, vstinner, steven.daprano
2020-12-16 10:22:24mariocj89setmessageid: <1608114144.71.0.944348492215.issue42654@roundup.psfhosted.org>
2020-12-16 10:22:24mariocj89linkissue42654 messages
2020-12-16 10:22:24mariocj89create