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 belopolsky
Recipients anton.barkovsky, belopolsky, benjamin.peterson, r.david.murray
Date 2014-07-12.18:55:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405191358.44.0.0210327517868.issue21966@psf.upfronthosting.co.za>
In-reply-to
Content
In order to implement reasonable rejection behavior, we probably need to add some support for -h.

$ python3 -z
Unknown option: -z
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

I don't think we should condition acceptance of this patch on extra features.

AFAICT, the main use of the code module is in embedded situations and the if __name__ == "__main__" behavior is mostly there for demonstration purposes.

On the other hand, something like

$ python3 -mcode -z
Unknown option: -z
usage: python3 -mcode [-q]

is not hard to implement.
History
Date User Action Args
2014-07-12 18:55:58belopolskysetrecipients: + belopolsky, benjamin.peterson, r.david.murray, anton.barkovsky
2014-07-12 18:55:58belopolskysetmessageid: <1405191358.44.0.0210327517868.issue21966@psf.upfronthosting.co.za>
2014-07-12 18:55:58belopolskylinkissue21966 messages
2014-07-12 18:55:58belopolskycreate