On Sun, Mar 3, 2019 at 6:17 PM Abdur-Rahmaan Janhangeer
<arj.pyt...@gmail.com> wrote:
>
> simple question; why does the normal list not exhibit a deque behaviour
> (left insertion)?

Because it's a lot less efficient. If you want that behaviour, you CAN
still insert into a list at position zero, but it's going to be slow
on large lists; or if you want it to be efficient, the deque is
available in the standard library.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to