Message187792
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. |
|
Date |
User |
Action |
Args |
2013-04-25 16:54:09 | paul.j3 | set | recipients:
+ paul.j3, bethard, chris.jerdonek, Robert |
2013-04-25 16:54:09 | paul.j3 | set | messageid: <1366908849.36.0.425468373418.issue16970@psf.upfronthosting.co.za> |
2013-04-25 16:54:09 | paul.j3 | link | issue16970 messages |
2013-04-25 16:54:09 | paul.j3 | create | |
|