> On 1 Mar 2017, at 10:26, Stéfane Fermigier <s...@fermigier.com> wrote:
> 
> Cf. https://martinfowler.com/bliki/CommandQuerySeparation.html 
> <https://martinfowler.com/bliki/CommandQuerySeparation.html>
> 
> But:
> 
> >>> l = [1,2,3]
> >>> l.pop()
> 3
> >>> l
> [1, 2]
> 
> => Not so true.
> 
>   S.

This is naturally a different circumstance: pop must return the element it 
popped, otherwise it would just be del. Surely you aren’t suggesting that pop 
should return self?

Cory
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to