Some api (in c++ at least) use "<<" for appending.

A = [1,2,7,2]
A <<= 5
A == [1,2,7,2,5]

The A[] = syntax has it's benefits being used in php (and I think some
other lang).

Le dim. 17 juin 2018 à 19:12, Michael Selik <m...@selik.org> a écrit :

> On Sun, Jun 17, 2018, 10:01 AM Mikhail V <mikhail...@gmail.com> wrote:
>
>> The idea is to introduce new syntax for the list.append() method.
>>
>
> While you have summarized your proposal, you haven't included a summary of
> the criticism.
>
> Also, one thing that's very common for proposals to change syntax and
> create new uses for operators is to show real code from major libraries
> that benefit from the change.
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
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