title: Creating combinations/permutations in python of a boolean list without using ITERTOOLS
body: <pre><code>l = [True, True , False]
  </code></pre>
  
  <p>Without using <code>itertools</code> module.</p>
  
  <p>How do yo create permutations of l in a new <code>list</code></p>
  
  <pre><code>newlist = [[True,True,False],[True,True,True], [False,False,True],[False,False,False]....]
  </code></pre>
  
  <p>essentially this is what im trying to do:</p>
  
  <pre><code>allorderings = itertools.product ([False, True], repeat = n)
  </code></pre>