News for hackers. Stuff that matters.
Re:Why Is Python Growing So Quickly? by xapata on Thursday September 14, 2017 @01:41PM (#15250432)
The Python design FAQ explains why Len is a built-in function instead of a method. Guido wanted a guarantee that whenever he called it, it'd return a whole number. As just another method, you might find a new type that defines a length in fractional terms, which would break any code wanting to use that as a list index, etc.
Re:Why Is Python Growing So Quickly? by goatlover on Thursday September 14, 2017 @02:42PM (#15251126)
But that would be on your for misusing the length method. All the built-in and popular libraries would still define length properly.
Re:Why Is Python Growing So Quickly? by xapata on Thursday September 14, 2017 @07:09PM (#15253234)
Perhaps, but "your" mistake might impede the popularity of the language. A wide range of well-designed community libraries are a major reason to choose Python.

Take a look at the design rationale for the new __matmul__ magic method. It's not for the standard library, it's for the community.

Re:Why Is Python Growing So Quickly? by antonvs on Thursday September 14, 2017 @03:51PM (#15251906)
The need to do that reveals a couple of weaknesses (or more charitably, tradeoffs) of Python: lack of type constraints, and (related) lack of well-defined, invariant interfaces on objects.
Re:Why Is Python Growing So Quickly? by xapata on Thursday September 14, 2017 @06:17PM (#15252946)
Trade-offs indeed. Magic methods indicate the use of interfaces defined by traits rather than formal types. Duck Typing. It's flexible.

But you can also see that Guido has been into types lately. He's been pushing the development of mypy and the new optional type system.