[Python-ideas] Operator for inserting an element into a list

Michael Selik mike at selik.org
Fri Jun 15 20:47:22 EDT 2018


One of those links was discussing extend, not append. The other wanted a
repeated append, best solved by a list comprehension. Neither makes a good
case for your suggestion.

On Fri, Jun 15, 2018, 5:40 PM Mikhail V <mikhailwas at gmail.com> wrote:

> On Sat, Jun 16, 2018 at 3:26 AM, Michael Selik <mike at selik.org> wrote:
> >
> >
> > On Fri, Jun 15, 2018, 5:24 PM Mikhail V <mikhailwas at gmail.com> wrote:
> >>
> >> there is just nothing against append() method.
> >
> >
> > Then why break the Zen: there should be only one obvious way?
>
> I think the question could be applied to 99% proposals
>
> >> But I see from various posts in the web and SO - people just want to
> spell
> >> it compact, and keep the 'item' part clean of brackets.
> >
> >
> > If you're going to cite things, please link to them.
>
> Want to force me to work? :)
>
> I made pair of links already in previous posts, not directly
> telling concrete wishes, but shows approximately the picture.
>
>
> Something more concrete maybe:
>
> https://stackoverflow.com/a/3653314/4157407
> https://stackoverflow.com/q/13818992/4157407
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180615/338f0321/attachment.html>


More information about the Python-ideas mailing list