[Python-ideas] sys.args

anatoly techtonik techtonik at gmail.com
Fri Jul 26 16:51:15 CEST 2013


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.


More information about the Python-ideas mailing list