Message187792
| 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: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 |
|