Message255636
This patch adds 3 properties to methodcaller objects for inspecting the object at runtime:
1. 'name': the name of the method to call
2. 'args': the position arguments to pass to the method
3. 'keywords': the keyword arguments to pass to the method
args and keywords act like functools.partial (that is why I did not name it kwargs).
I noticed that recently the repr changed to expose this information which helps in the debugging use case; however, this allows us to use the methodcaller to maybe construct a new methodcaller with different args, or call a different method with the same args. |
|
Date |
User |
Action |
Args |
2015-12-01 02:07:11 | llllllllll | set | recipients:
+ llllllllll |
2015-12-01 02:07:11 | llllllllll | set | messageid: <1448935631.22.0.209196895729.issue25770@psf.upfronthosting.co.za> |
2015-12-01 02:07:10 | llllllllll | link | issue25770 messages |
2015-12-01 02:07:10 | llllllllll | create | |
|