[Python-ideas] sys.args

Ryan rymg19 at gmail.com
Fri Jul 26 18:40:51 CEST 2013


But that violates the Python Zen: 'There should be one, and preferably only one, way to do it'. The name argv isn't meaningless. I believe it comes from C. argv was the argument vector, i.e. the container for the arguments.

anatoly techtonik <techtonik at gmail.com> wrote:

>On Fri, Jul 26, 2013 at 5:47 PM, Giampaolo Rodola' <g.rodola at gmail.com>
>wrote:
>> On Fri, Jul 26, 2013 at 4:39 PM, anatoly techtonik
><techtonik at gmail.com> wrote:
>>> sys.argv is an atavism with not intuitive name, how about sys.args
>for
>>> program arguments only?
>>>
>>> if not sys.args:
>>>   print("usage: ...")
>>
>> I'd say the cost in terms of compatibility breakage is way higher
>than
>> the benefits.
>
>It's not sys.argv replacement, but an alternative that is easy to
>remember.
>--
>anatoly t.
>_______________________________________________
>Python-ideas mailing list
>Python-ideas at python.org
>http://mail.python.org/mailman/listinfo/python-ideas

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130726/0da603de/attachment.html>


More information about the Python-ideas mailing list