Why return None?
martindemello at yahoo.com
Thu Aug 26 13:00:19 CEST 2004
Alex Martelli <aleaxit at yahoo.com> wrote:
> Not leaving stylistic choice (which would lead to more than one obvious
> way to do it) is quite consonant with the Zen of Python. Of course one
> can't always reach what's preferable, but "your main point" which is
> presumably meant as a criticism of this design choice comes across as
> praise: the design choice follows the overall design's philosophy.
I still feel the the One Obvious Way should have been to return self...
> Guido doesn't like method chaining, so he made a design choice that did
> not allow method chaining, and did not give several equally obvious ways
But that's pretty hard to argue with :)
More information about the Python-list