optional optional args vs optional positional options

Tim Golden mail at timgolden.me.uk
Wed Jun 2 06:51:59 EDT 2010


On 02/06/2010 11:42, Antoine Pitrou wrote:
> On Wed, 2 Jun 2010 01:49:18 -0700 (PDT)
> Michele Simionato<michele.simionato at gmail.com>  wrote:
>>
>> Notice that optparse is basically useless in the use case Tim is
>> considering (positional arguments) since it only manages options.
>
> By the way, could you stop naming these "optional arguments", since
> positional arguments can be optional as well? It is confusing :)

The great thing with English is that you can use nouns as
adjectives without changing them, so you can say "option arguments"
and "position arguments" quite happily here :)

But then you run into the fact that you're having semantic arguments
about argument semantics :(

TJG



More information about the Python-list mailing list