Message126367
| Author |
avdd |
| Recipients |
avdd |
| Date |
2011年01月16日.15:49:46 |
| SpamBayes Score |
5.9946964e-05 |
| Marked as misclassified |
No |
| Message-id |
<1295192992.12.0.880697566702.issue10918@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
An API such as in, e.g. futures:
def submit(self, fn, *args, **kwargs):
pass
cannot be used thus:
submit(foo, 1, 2, fn=bar)
I can see two options: either mangle the named parameters:
def submit(__self, __fn, *args, **kwargs):
pass
Or fiddle with *args:
def submit(*args, **kwargs):
self, fn = args[:2]
args = args[2:] |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年01月16日 15:49:52 | avdd | set | recipients:
+ avdd |
| 2011年01月16日 15:49:52 | avdd | set | messageid: <1295192992.12.0.880697566702.issue10918@psf.upfronthosting.co.za> |
| 2011年01月16日 15:49:46 | avdd | link | issue10918 messages |
| 2011年01月16日 15:49:46 | avdd | create |
|