[Python-ideas] Alternative spelling for list.append()
Robert Vanden Eynde
robertve92 at gmail.com
Sun Jun 17 13:27:28 EDT 2018
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
Le dim. 17 juin 2018 à 19:12, Michael Selik <mike at selik.org> a écrit :
> On Sun, Jun 17, 2018, 10:01 AM Mikhail V <mikhailwas at 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 at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas