LangWart: Method congestion from mutate multiplicty

Steven D'Aprano steve+comp.lang.python at
Mon Feb 11 01:42:21 CET 2013

Rick Johnson wrote:

> On Sunday, February 10, 2013 7:30:00 AM UTC-6, Oscar Benjamin wrote:
>> On 10 February 2013 04:53, Mark Janssen wrote:
>> > [...]
>> > I have to agree with Rick, I think requiring the user to explicitly
>> > create a new object, which is already a good and widely-used practice,
>> > should be the Only One Way to Do It.
>> Why should I copy a potentially large data structure just to iterate
>> over it in reverse order?
> That's a good question, and the answer is: "Only a fool would make a copy
> of ANY data structure only to simply iterate over it; be it forwards or
> backwards or sideways".

Aren't you the fool who wants to remove reversed() and have people write:

reversed = list(seq).reverse()

Oh yes, you are the fool. And me the bigger fool for listening to you.

Time for another six months in my killfile, methinks.


More information about the Python-list mailing list