Python vs. Ruby

John Roth johnroth at ameritech.net
Wed Jan 1 08:18:29 EST 2003


"Brian Quinlan" <brian at sweetapp.com> wrote in message
news:mailman.1041381303.29130.python-list at python.org...
> 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
methods
> 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