Python vs. Ruby

John Roth johnroth at
Wed Jan 1 14:18:29 CET 2003

"Brian Quinlan" <brian at> wrote in message
news:mailman.1041381303.29130.python-list at
> John Roth wrote:
> > It also has a solution to one of the ugliest warts in Python:
> > the fact that the .append(), .sort() and .reverse() methods
> > don't return an updated value, so you can't chain them.
> This is by design in Python. It would be trivial to change these
> to return self if it were considered desirable.

Of course it would be, and I regard the design as a major
inconsistency in Guido's thinking. Being novice friendly is
one thing, but penalizing everyone else by crippling chained
application is quite something else.

John Roth

> Cheers,
> Brian

More information about the Python-list mailing list