Popular recipes tagged "splitting" but not "commandline"http://code.activestate.com/recipes/tags/splitting-commandline/2015-02-11T20:08:35-08:00ActiveState Code RecipesSplit file in place into two parts (Python)
2015-02-11T20:08:35-08:00shavy89http://code.activestate.com/recipes/users/4191634/http://code.activestate.com/recipes/579025-split-file-in-place-into-two-parts/
<p style="color: grey">
Python
recipe 579025
by <a href="/recipes/users/4191634/">shavy89</a>
(<a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/splitting/">splitting</a>).
Revision 2.
</p>
<p>Split file in place into two parts </p>
Split a sequence or generator using a predicate (Python)
2013-01-21T16:20:17-08:00Paul McGuirehttp://code.activestate.com/recipes/users/1377254/http://code.activestate.com/recipes/578416-split-a-sequence-or-generator-using-a-predicate/
<p style="color: grey">
Python
recipe 578416
by <a href="/recipes/users/1377254/">Paul McGuire</a>
(<a href="/recipes/tags/partition/">partition</a>, <a href="/recipes/tags/sequence/">sequence</a>, <a href="/recipes/tags/splitting/">splitting</a>).
Revision 3.
</p>
<p>Split a sequence or generator into two iterators, each iterating over the elements that either pass or fail a predicate function.</p>