I still really like this idea and the flexibility and utility it provides. A very simple workflow that many non-experts can probably achieve with sufficient support from workflow tools or even IDE.
Imagine an IDE had a button that said “Lock script”. Yes, people could say we can do this already with shiv or zipapp or others, but that would produce an additional file. This provides an ability to lock-in-place for simple cases.
I also think if this is standardised, then IDE can help with syntax highlighting and collapsing, or warning etc.
On the topic of Security, it is very important! But execution of any script (or binary or pyz or sh) carries some level of risk. If we’re going to block this proposal purely because malicious people can hide sneaky code, then I think that applies to all of software already.
Anyone who is pasting code into a terminal or double clicking on a binary is consciously or unconsciously taking a “risk”. Their hard drive might be wiped, their computer might crash, they might run out of memory, they might get hacked.
Or, what happens most of the time, the desired functionality that they expect occurs and they are happy with how easy the experience was.
Don’t get me wrong. I deeply care about Security. And these are extremely good points that need addressing or mechanisms to reduce risk. I’m just trying to share a point of view that “we’re all consenting adults” (and yes, some younger ones use python too) and that if we take a position that the most secure thing is not to do anything, then we’re not in a great spot. I know nobody is suggesting we do nothing btw!
The points on security are valid, but how do we get to yes?