[Python-ideas] CLI option for isolated mode

Christian Heimes christian at python.org
Fri Nov 9 17:27:28 CET 2012

Am 09.11.2012 09:19, schrieb M.-A. Lemburg:
> Sounds like a good idea. I'd be interested in this, because it would
> make debugging user installation problems easier.
> The only thing I'm not sure about is the option character "-I". It
> reminds me too much of the -I typically used for include paths
> in C compilers :-)

I'm open to suggestions for a better name and character. Michael also
pointed out that capital i (india) can look like a lower case l (lima).
-R is still unused. I hesitate to call it restricted mode because it can
be confused with PyPy's restricted Python.

> BTW: In order to have Python applications respect this flag, there
> should be an easy way to access this flag in Python programs, e.g.
> sys.ignore_user_env.

Of course! I assumed that I don't have to spell it out explicitly. A new
CLI option will be accompanied with a new sys.flags attribute like


More information about the Python-ideas mailing list