Message222867
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. |
|
Date |
User |
Action |
Args |
2014-07-12 18:55:58 | belopolsky | set | recipients:
+ belopolsky, benjamin.peterson, r.david.murray, anton.barkovsky |
2014-07-12 18:55:58 | belopolsky | set | messageid: <1405191358.44.0.0210327517868.issue21966@psf.upfronthosting.co.za> |
2014-07-12 18:55:58 | belopolsky | link | issue21966 messages |
2014-07-12 18:55:58 | belopolsky | create | |
|