Message126426
| Author |
avdd |
| Recipients |
avdd, bquinlan, r.david.murray, ron_adam |
| Date |
2011年01月17日.18:42:27 |
| SpamBayes Score |
2.7655137e-06 |
| Marked as misclassified |
No |
| Message-id |
<1295289749.97.0.316888151946.issue10918@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The futures case is one example of a broader API design issue.
Note also that 'self' is similarly restricted. You might think these are 'corner cases', but to me it is poor API design. There may well be a reasonable case for passing 'self' as a keyword arg; what right has the API to dictate otherwise?
I think Python's private name mangling provides a reasonably clean, self-documenting solution, pushing the 'corner' case further to the corner (the restriction would then be on the much-less-likely mangled names). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年01月17日 18:42:30 | avdd | set | recipients:
+ avdd, bquinlan, ron_adam, r.david.murray |
| 2011年01月17日 18:42:29 | avdd | set | messageid: <1295289749.97.0.316888151946.issue10918@psf.upfronthosting.co.za> |
| 2011年01月17日 18:42:27 | avdd | link | issue10918 messages |
| 2011年01月17日 18:42:27 | avdd | create |
|