<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>I understand the view from the poster, most basic list operations are using brackets, ie reading and writing with [], delete with del L[], why not append ?<br>
</div>
<div>And being used extensively, that brackets are annoying.<br>
</div>
<div>And yes, += [] is more "concise" than .append() so some people would think it's more clear because "it's smaller" (they'd be wrong as the OP mentioned).<br>
</div>
<div><br>
But it would break the "There is only one Obvious way to do it" principle.<br>
People would take time to figure out "okay, what should I write ? What's the most Pythonic ?"<br>
<br>
</div>
If someone wants to use their own list class, it's doable with the current syntax :<br>
<br>
</div>
class List(list):<br>
</div>
    def __lshift__(self, x):<br>
</div>
        self.append(x)<br>
</div>
        return self<br>
<br>
</div>
a = List([1,2,7,2])<br>
</div>
a = a << 1 << 5<br>
</div>
a <<= 0<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-06-18 1:36 GMT+02:00 Clint Hepner <span dir="ltr"><<a href="mailto:clint.hepner@gmail.com" target="_blank">clint.hepner@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><br>
<br>
> On Jun 17, 2018, at 4:18 PM, Chris Angelico <<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>> wrote:<br>
> <br>
>> On Mon, Jun 18, 2018 at 3:01 AM, Mikhail V <<a href="mailto:mikhailwas@gmail.com" target="_blank">mikhailwas@gmail.com</a>> wrote:<br>
>> The idea is to introduce new syntax for the list.append() method.<br>
>> <br>
>> <br>
>> Syntax:<br>
>> <br>
>> Variant 1.<br>
>> Use special case of index, namely omitted index:<br>
>> <br>
>>    mylist[] = item<br>
> <br>
> Creation of syntax cannot be done for just one type.<br>
<br>
</span>That’s false. @ was added solely for matrix multiplication. <br>
<span><br>
> <br>
> Regardless, I am still a strong -1 on introducing another way to spell<br>
> list.append().<br>
<br>
</span>-1 as well. Has any one but the proposer shown any support for it yet?<br>
<br>
— <br>
<span class="m_660568432192282129m_-1795259707071178444HOEnZb"><font color="#888888">Clint<br>
</font></span>
<div class="m_660568432192282129m_-1795259707071178444HOEnZb">
<div class="m_660568432192282129m_-1795259707071178444h5"><br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">
http://python.org/psf/codeofco<wbr>nduct/</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>