Re: F37 proposal: Python: Add -P to default shebangs (System-Wide Change proposal)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changing the default in Python was discussed multiple times over the
last 20 years. Every time, it was said that it's convenient and it's
not worth it to break use cases to increase the default security.

Python 3.4 already has -I (isolated mode) which imply Python 3.11 -P
option, but it also implies other options like -E which ignores
environment variables, and so cannot be used for Fedora use cases
(shebangs).

I'm thinking about proposing a PEP to change the defaut in Python
3.12, but I'm not confident that it would be accepted. It's more to
write down the rationale once ;-)

Victor

On Wed, May 11, 2022 at 10:32 PM Miro Hrončok <mhroncok@xxxxxxxxxx> wrote:
>
> On 11. 05. 22 16:24, Robbie Harwood wrote:
> > Ben Cotton <bcotton@xxxxxxxxxx> writes:
> >
> >> :Don’t prepend a potentially unsafe path to `sys.path`:
> >
> > If this is a safety/security issue, why not just make it the default for
> > python itself?
>
> I would like that, but -P is what we have now. If we pioneer this in Fedora,
> maybe we can convince upstream to make that the default, however,
> backwards-compatibility matters to many people and while I would appreciate
> such change, I don't really want to to drive it. Victor (the second change
> owner) might want to persuade that path, but it ain't gonna happen in Python 3.11.
>
> --
> Miro Hrončok
> --
> Phone: +420777974800
> IRC: mhroncok
>
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux