Terry J. Reedy added the comment:

Looking further at handling debug, startup, cmd, or script options. When any of 
these are set, enable_shell is also, so to reach here, shell must be true, so 
only the MAC test, the subject of this issue, needs protection. Smaller patch 
(fewer lines changed) attached.

---
Not part of this issue, but if someone can explain ...:
This this bit under "if cmd or script:" puzzles me.
        shell.interp.runcommand("""if 1:
            import sys as _sys
            _sys.argv = %r
            del _sys
            \n""" % (sys.argv,))
Since the only lasting effect it can have is on the already imported sys 
module, it seems to be equivalent to
        sys.argv = "%r" % (sys.argv)
And I do not know what net effect that has, if anything.

----------
Added file: http://bugs.python.org/file31136/18270-27-B.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to