deque as default list behaviour

2019-03-02 Thread Abdur-Rahmaan Janhangeer
simple question; why does the normal list not exhibit a deque behaviour (left insertion)? -- Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: deque as default list behaviour

2019-03-02 Thread Chris Angelico
On Sun, Mar 3, 2019 at 6:17 PM Abdur-Rahmaan Janhangeer 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 slo