a list > a list of lists
<p>In python, how can I split a long list into a list of lists wherever I come across '-'. For example, how can I convert:</p>

<pre><code>['1', 'a', 'b','---', '2','c','d','---','3','123','e','---','4']
</code></pre>

<p>to </p>

<pre><code>[['1', 'a', 'b'],['2','c','d'],['3','123','e'],['4']]
</code></pre>

<p>Many thanks in advance.</p>
