title: Fastest way to reposition sublist in python
body: <p>What is the fastest way to reposition a sublist from a list in Python?</p>
  
  <p>Let's say we have a list <code>L = [a,b,c,d,e,f,g,h]</code>, now I want to take <code>[c,d,e]</code> and put it after <code>g</code> in the list. How can I do this <em>fast</em>?</p>
  
  <p>Edit:
  In other words I would like to write a function that:</p>
  
  <ol>
  <li>extracts a sublist L_sub of length <em>n</em> from L, leaving L_temp</li>
  <li>insert the items of L_sub at a given position <em>i</em> into L_temp </li>
  </ol>
  
  <p>The main question I guess is how to insert a list into list as fast as possible.</p>