The principle of least astonishment and optimizing for idiocy are not the same thing.
Re:Why Python 3 Exists
by the_mitsuhiko on Friday December 18, 2015 @04:38AM
(#10757573)
How is an attribute error clearer than an exception that says something like: operation does not make sense of this type?
We should not optimize languages for idiots. There is nothing confusing about such an operation for anyone who can use their brain. Python 3 still contains those operations but instead of x.encode(y) you now do encode(x, y).