[issue16499] CLI option for isolated mode

2014-02-24 Thread R. David Murray
R. David Murray added the comment: For the record (since it took me a while to figure it out), the changeset that this was committed in is dd0d751cc7f1. -- nosy: +r.david.murray ___ Python tracker

[issue16499] CLI option for isolated mode

2013-08-10 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16499] CLI option for isolated mode

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06c39789061e by Christian Heimes in branch 'default': typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400 http://hg.python.org/cpython/rev/06c39789061e -- nosy: +python-dev ___ Python tr

[issue16499] CLI option for isolated mode

2013-08-02 Thread Nick Coghlan
Nick Coghlan added the comment: Yep, sounds good to me ("don't wait for PEP 432" is what I meant to imply above, but I wasn't very clear about it) -- ___ Python tracker ___

[issue16499] CLI option for isolated mode

2013-08-02 Thread Christian Heimes
Christian Heimes added the comment: Nick, you have deferred PEP 432 [1]. Do you mind if I check in the isolate mode for 3.4 and help you with PEP 432 for 3.5? [1] http://www.python.org/dev/peps/pep-0432/#pep-deferral -- ___ Python tracker

[issue16499] CLI option for isolated mode

2013-07-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 02, 2013, at 02:12 AM, Nick Coghlan wrote: >So +1 from me for a -I isolated mode, and I'll adjust PEP 432 as necessary to >cope. PEP 394 is probably related to any such additional binary. -- ___ Python track

[issue16499] CLI option for isolated mode

2013-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: I've come around to the idea of having this available as an option in the default interpreter. A separate binary could then just make it the default behaviour (leaning on PEP 432 to do so), which is more shebang line friendly and allows Linux distros to better d

[issue16499] CLI option for isolated mode

2013-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: CPython's startup sequence and collection of global flags are organically evolved madness, so I think adding even more complexity to them is a bad idea. When you're in a hole, the first thing to do is *stop digging*. I could use help laying the foundations for PEP

[issue16499] CLI option for isolated mode

2013-06-20 Thread Christian Heimes
Christian Heimes added the comment: It comes from Nick and http://www.python.org/dev/peps/pep-0432/ . Once PEP 432 is in place we can easily create variants of Python binaries with special flags. I'm in favor with python -I, too. -- ___ Python track

[issue16499] CLI option for isolated mode

2013-06-20 Thread Christian Heimes
Christian Heimes added the comment: We don't have "spython" yet. Py_IsolatedFlag is also required if we ever going to have "spython", too. We can always remove the command line flag before Python 3.4 hits beta. -- ___ Python tracker

[issue16499] CLI option for isolated mode

2013-06-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 20, 2013, at 02:26 PM, STINNER Victor wrote: > >"python -I" and "spython" sound like two ways to get the same results. I >would prefer to only have one way. Where does spython come from? Personally, I'd much rather this be an option on the existing pyt

[issue16499] CLI option for isolated mode

2013-06-20 Thread STINNER Victor
STINNER Victor added the comment: "python -I" and "spython" sound like two ways to get the same results. I would prefer to only have one way. -- ___ Python tracker ___ _

[issue16499] CLI option for isolated mode

2013-06-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It applies cleanly, builds without noticeable problems and does what it's advertised to do. In other words, looks great to me! I say go for it. -- ___ Python tracker __

[issue16499] CLI option for isolated mode

2013-06-19 Thread Christian Heimes
Christian Heimes added the comment: I'm catching up on some old patches. What shall I do about this patch? Does anybody want to review or intervene it? -- ___ Python tracker ___

[issue16499] CLI option for isolated mode

2013-04-24 Thread yaccz
Changes by yaccz : -- nosy: +yaccz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue16499] CLI option for isolated mode

2013-04-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16499] CLI option for isolated mode

2013-01-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: -serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16499] CLI option for isolated mode

2013-01-05 Thread Nick Coghlan
Nick Coghlan added the comment: The "system Python" idea in PEP 432 is aimed at providing an alternate interpreter binary which changes the default behaviour to be appropriate for system utilities, while allowing such features to be enabled selectively. --

[issue16499] CLI option for isolated mode

2012-12-03 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16499] CLI option for isolated mode

2012-11-28 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16499] CLI option for isolated mode

2012-11-27 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16499] CLI option for isolated mode

2012-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > How shall I handle venv? I'm reluctant to disable venv in site.py > although it allows a user to modify sys.path. However it's only an > issue under two circumstances: > > (1) The user either needs write permissions to the parent directory of > the python exec

[issue16499] CLI option for isolated mode

2012-11-22 Thread Christian Heimes
Christian Heimes added the comment: How shall I handle venv? I'm reluctant to disable venv in site.py although it allows a user to modify sys.path. However it's only an issue under two circumstances: (1) The user either needs write permissions to the parent directory of the python executable.

[issue16499] CLI option for isolated mode

2012-11-19 Thread Christian Heimes
Christian Heimes added the comment: New patch with typo fixes and update for recent modification in the make_flags() function. Marc: The patch was motivated by use cases like Barry's issue with 3rd party software that accidentally messes with Python scripts like lsb_release. Your use case (te

[issue16499] CLI option for isolated mode

2012-11-19 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file28036/isolatemode2.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue16499] CLI option for isolated mode

2012-11-19 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file28024/isolatemode.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue16499] CLI option for isolated mode

2012-11-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.11.2012 15:30, Christian Heimes wrote: > > Christian Heimes added the comment: > > The first patch implements the arg parsing, sys.flags, PySys_SetArgv() > modification that doesn't include the current directory as sys.path[0] and > some doc updates

[issue16499] CLI option for isolated mode

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -I looks as antonym to -i. This is good. See also related issue12238 and issue10496. Hint: if you refers to issue as issueXXX, you can see an issue title when hover mouse over link. -- nosy: +serhiy.storchaka __

[issue16499] CLI option for isolated mode

2012-11-18 Thread Christian Heimes
Christian Heimes added the comment: Here is a new patch with some tests. -- Added file: http://bugs.python.org/file28036/isolatemode2.patch ___ Python tracker ___ ___

[issue16499] CLI option for isolated mode

2012-11-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 18, 2012, at 05:16 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >+1 from me. "-I" and "isolated" sound fine to me. I haven't reviewed the patch yet, but based on the email discussions, I'm also +1 for the concept, option name, and term

[issue16499] CLI option for isolated mode

2012-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 from me. "-I" and "isolated" sound fine to me. The patch needs to add some tests. Also the docs need some "versionadded" / "versionchanged" markers. -- nosy: +pitrou ___ Python tracker

[issue16499] CLI option for isolated mode

2012-11-18 Thread Brett Cannon
Brett Cannon added the comment: I don't think we need to worry about overlapping with gcc; -B, -b, -c, -d, etc. are all used by gcc for some reason or another. -- nosy: +brett.cannon ___ Python tracker ___

[issue16499] CLI option for isolated mode

2012-11-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16499] CLI option for isolated mode

2012-11-18 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Interpreter Core keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mai

[issue16499] CLI option for isolated mode

2012-11-18 Thread Christian Heimes
Christian Heimes added the comment: The first patch implements the arg parsing, sys.flags, PySys_SetArgv() modification that doesn't include the current directory as sys.path[0] and some doc updates. Open issue: - MAL has addressed concerns that '-I' is too similar to GCC's -I (include path

[issue16499] CLI option for isolated mode

2012-11-18 Thread Christian Heimes
New submission from Christian Heimes: I like to propose a new option for the Python interpreter: python -I It shall start the interpreter in isolated mode which ignores any environment variables set by the user and any files installed by the user. The mode segregate a Python program from anyt