Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys.safe_path with Command line parameter -P and environment variable PYTHONSAFEPATH #4541

Open
1 of 4 tasks
Tracked by #5104 ...
youknowone opened this issue Feb 21, 2023 · 1 comment
Open
1 of 4 tasks
Tracked by #5104 ...
Labels
C-compat A discrepancy between RustPython and CPython good first issue Good for newcomers

Comments

@youknowone
Copy link
Member

youknowone commented Feb 21, 2023

https://docs.python.org/3/using/cmdline.html#cmdoption-P

https://github.com/RustPython/RustPython/pull/4537/files#diff-cb42fd26146ec61cb2242243494a9f314667a9a39153ad17e37465ff5a8a8000R536

  • add sys.flags.safe_path add sys.flags and sys.int_info #4568
  • add command line parameter -P to set flag
  • use environment variable PYTHONSAFEPATH to set flag
  • actual implementation of safe_path

I didn't check the actual implementation, but other 3 tasks are easy tasks

@youknowone youknowone changed the title Command line parameter -P sys.safe_path with Command line parameter -P and environment variable PYTHONSAFEPATH Feb 25, 2023
@youknowone youknowone added good first issue Good for newcomers C-compat A discrepancy between RustPython and CPython labels Feb 25, 2023
@naonus
Copy link
Contributor

naonus commented Mar 2, 2023

I'll take this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-compat A discrepancy between RustPython and CPython good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants