On 9/28/2021 9:17 AM, Antoine Pitrou wrote:
On Tue, 28 Sep 2021 09:14:38 -0400 "Eric V. Smith" <eric@trueblade.com> wrote:
On Tue, 28 Sep 2021 08:55:05 -0400 "Eric V. Smith" <eric@trueblade.com> wrote:
So I prefer to teach everybody how to use "-X frozen_modules=off" if they want to hack the stdlib for their greatest pleasure. I prefer that such special use case requires an opt-in option, the special use case is not special enough to be the default. I agree with Victor here: I'd rather have #1.
As a compromise, how about go with #1, but print a warning if python detects that it's not built with optimizations or is run from a source tree (the conditions in #2 and #3)? The warning could suggest running with "-X frozen_modules=off". I realize that it will probably be ignored over time, but maybe it will provide enough of a reminder if someone is debugging and sees the warning. What would be the point of printing a warning instead of doing just what the user is expecting? To me, the point would be to get the same behavior no matter which
On 9/28/2021 9:10 AM, Antoine Pitrou wrote: python executable I run, and without regard to where I run it from. But why do you care about this? What does it change *concretely*?
It reduces the number of things I have to remember which are different based on where I'm running python (or which executable I'm running). Eric