On Tue, Jun 12, 2018 at 4:43 PM Mikhail V <mikhail...@gmail.com> wrote:

> inserting in the beginning of the list may be also not rare.
>

Inserting in the beginning of a list is *slow* and should be rare.
If you want to append to the left-side of a list, you should use a deque.
Check out ``collections.deque`` for your insert(0, x) needs.
_______________________________________________
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