Message232150
inspect.Signature.bind() doesn't add values for parameters that are unspecified but have a default value. The documentation at https://docs.python.org/3/library/inspect.html#inspect.BoundArguments.arguments includes an example how to add default values, but that example doesn't work for the * and ** parameters.
This patch adds a new method Signature.bind_with_defaults() that works like Signature.bind(), but includes parameters with a default value (and can handle values for the * and ** parameters). |
|
Date |
User |
Action |
Args |
2014-12-04 20:14:01 | doerwalter | set | recipients:
+ doerwalter |
2014-12-04 20:14:01 | doerwalter | set | messageid: <1417724041.66.0.201313804397.issue22998@psf.upfronthosting.co.za> |
2014-12-04 20:14:01 | doerwalter | link | issue22998 messages |
2014-12-04 20:14:01 | doerwalter | create | |
|