This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:39r.david.murraysetrecipients: + r.david.murray, bquinlan, ron_adam, avdd
2011-01-17 17:30:39r.david.murraysetmessageid: <1295285439.91.0.302066841342.issue10918@psf.upfronthosting.co.za>
2011-01-17 17:30:36r.david.murraylinkissue10918 messages
2011-01-17 17:30:36r.david.murraycreate