[Python-Dev] Re: Guido's Magic Code was: inline sort option

Guido van Rossum guido at python.org
Thu Oct 30 13:19:24 EST 2003


> >I'm not convinced that we have a problem (beyond Alex lying awake at
> >night, that it :-).
> 
> I thought you were proposing to use it for list.sorted, in order to provide 
> a better error message when used with an instance.  If such a descriptor 
> were implemented, I was suggesting that it would be useful as a form of 
> documentation (i.e. that a method isn't intended to be called on instances 
> of the class), and thus it would be nice for it to be exposed for folks 
> like me who'd take advantage of it.  (Especially if PEP 318 is being 
> implemented.)

I mostly just proposed it to placate Alex; I think he's overly worried
in this case.  PEP 318 seems a ways off.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list