Message243249
| Author |
serhiy.storchaka |
| Recipients |
cool-RR, larry, ncoghlan, python-dev, serhiy.storchaka, terry.reedy, yselivanov |
| Date |
2015年05月15日.06:43:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1431672184.67.0.40711374524.issue22547@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
May be omit names for positionalarguments?
>>> def foo(a, *args, b=10, **kwargs): pass
...
>>> inspect.signature(foo).bind(1, 2, 3, b=4, c=5)
<BoundArguments at 0xb6eee9ec (a=1, args=(2, 3), b=4, kwargs={'c': 5})>
I think it would look better as:
<BoundArguments (1, 2, 3, b=4, c=5)> |
|