> The idea is to introduce new syntax for the list.append() method.
>
>
> Syntax:
>
> Variant 1.
> Use special case of index, namely omitted index:
>
>     mylist[] = item
>

For all practical purpose, it would be enough to define that the expression:

mylist += [item]


gets optimized to mylist.append(item).


-- 
Juancarlo *Añez*
_______________________________________________
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