Message91921
FYI, all special methods are (now) looked up on the type for new style
classes. Your suggested rewrite makes things more confusing, IMO
(partly because to make it accurate it would need to be something like
type(x).__call__(x, *args, **kw), which doesn't really make the sentence
clearer).
So far I haven't thought of a rewording I like. The best I've come up
with is "x(arguments) invokes the __call__ method, passing it the
arguments." This leaves it to other parts of the language spec to
explain how __call__ gets resolved.
Whatever we decide to do, section 3.4.4 will need a similar update. |
|
Date |
User |
Action |
Args |
2009-08-24 14:55:43 | r.david.murray | set | recipients:
+ r.david.murray, georg.brandl, onlyme |
2009-08-24 14:55:43 | r.david.murray | set | messageid: <1251125743.41.0.272422739212.issue6761@psf.upfronthosting.co.za> |
2009-08-24 14:55:42 | r.david.murray | link | issue6761 messages |
2009-08-24 14:55:41 | r.david.murray | create | |
|