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 paul.j3
Recipients Robert, bethard, chris.jerdonek, paul.j3
Date 2013-04-25.16:54:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366908849.36.0.425468373418.issue16970@psf.upfronthosting.co.za>
In-reply-to
Content
An integer nargs value is only used in one of 2 ways,

range(nargs)

'%s'*nargs

In both a negative value acts the same as a 0.

I don't think the original authors though much about 'what if the code user gives a negative value?', because nargs is counting things - the number of expected arguments.  For some actions that number is 0.  For other some sort of positive integer, or variable numbers like '*','+' make most sense.

To some degree nargs is modeled on the regex sequences, '*','+','?','{n}'.  '{-1}' does not produce a regex error, though I can't make anything match it.
History
Date User Action Args
2013-04-25 16:54:09paul.j3setrecipients: + paul.j3, bethard, chris.jerdonek, Robert
2013-04-25 16:54:09paul.j3setmessageid: <1366908849.36.0.425468373418.issue16970@psf.upfronthosting.co.za>
2013-04-25 16:54:09paul.j3linkissue16970 messages
2013-04-25 16:54:09paul.j3create