Re: [Python-Dev] .len() instead of __len__() (was: iterator API in Py3.0)

2006-03-05 Thread Neil Schemenauer
Oleg Broytmann <[EMAIL PROTECTED]> wrote: > What are disadvantages of a direct .len() instead of .__len__()? I can think of a few arguments against getting rid of double underscores in general. First, special methods are a little like keywords in that it would be nice to introduce new ones from t

Re: [Python-Dev] .len() instead of __len__() (was: iterator API in Py3.0)

2006-03-05 Thread Oleg Broytmann
Hello! On Sat, Mar 04, 2006 at 04:31:26PM -0500, Phillip J. Eby wrote: > I'm not sure that "more object-oriented" should be equated with "good" in > this context, or indeed any context. :) I am sure it is. > A function is no more or less > polymorphic than a method in any case, especially i