Message126417
| Author |
r.david.murray |
| Recipients |
avdd, bquinlan, r.david.murray, ron_adam |
| Date |
2011年01月17日.17:30:36 |
| SpamBayes Score |
0.00016700906 |
| Marked as misclassified |
No |
| Message-id |
<1295285439.91.0.302066841342.issue10918@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The reason that it is surprising is that the API is designed to allow an arbitrary function to be called, with whatever arguments and keyword arguments that function takes. The user of the API is not necessarily going to remember that the first argument to 'submit' is named 'fn', and that therefore they must jump through special hoops if they should happen to want to submit a function that takes a keyword argument named 'fn'. This becomes especially problematic if the function calling submit is itself accepting an arbitrary callable from a higher layer in the application.
If the first argument to submit were named something less common than 'fn', this problem might never have been noticed :) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年01月17日 17:30:39 | r.david.murray | set | recipients:
+ r.david.murray, bquinlan, ron_adam, avdd |
| 2011年01月17日 17:30:39 | r.david.murray | set | messageid: <1295285439.91.0.302066841342.issue10918@psf.upfronthosting.co.za> |
| 2011年01月17日 17:30:36 | r.david.murray | link | issue10918 messages |
| 2011年01月17日 17:30:36 | r.david.murray | create |
|