[Python-ideas] Operator for inserting an element into a list
Michael Selik
mike at selik.org
Thu Jun 14 22:40:44 EDT 2018
On Thu, Jun 14, 2018, 7:24 PM Mikhail V <mikhailwas at gmail.com> wrote:
> what haven't we repeated in this thread yet? Motivation was explained.
>
You have repeated your explanations a few times. It isn't convincing.
It seems to me that your main complaint is that strings are iterable,
though you haven't expressed it as such. During slice assignment, you're
surprised that the string is a sequence of characters. I understand, but I
don't find that confusion a compelling reason to add a new operator.
About confusion probably haven't discussed : so Xor ^ works on sets,
> IIRC for finding
> union without common elements.
>
I wrote about this in an earlier email, which you didn't reply to. You're
correct that xor doesn't make sense with lists, especially not between a
list and a single element.
Again, though other operators have been given different meanings in special
contexts, those decisions should be seen as abnormal, not an excuse to keep
creating more special cases.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180614/60812aa8/attachment.html>
More information about the Python-ideas
mailing list