This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients amaury.forgeotdarc, dbackhaus, kbk, ned.deily, roger.serwy, terry.reedy
Date 2013-08-03.04:40:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375504814.07.0.394085346449.issue18270@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-08-03 04:40:14terry.reedysetrecipients: + terry.reedy, kbk, amaury.forgeotdarc, ned.deily, roger.serwy, dbackhaus
2013-08-03 04:40:14terry.reedysetmessageid: <1375504814.07.0.394085346449.issue18270@psf.upfronthosting.co.za>
2013-08-03 04:40:14terry.reedylinkissue18270 messages
2013-08-03 04:40:13terry.reedycreate