[Python-Dev] PEP 292: method names

Erik Heneryd erik at heneryd.com
Tue Sep 14 01:44:26 CEST 2004


Barry Warsaw wrote:
> On Mon, 2004-09-13 at 12:16, Erik Heneryd wrote:
>>Subclassing just to get a 
>>decent name/operator feels stupid.  Why not __mod__ = safe_substitute 
>>per default then?
> 
> 
> Because I don't know which version will be more generally preferred by
> application authors and in the face of ambiguity I refuse the temptation
> to guess.  (I know which version my own applications will prefer but I
> think you're the same person arguing that my own needs shouldn't drive
> all decisions.)

You know, that's an argument for going back to subclasses.


Erik


More information about the Python-Dev mailing list