These are chat archives for evhub/coconut
--target 3.3solved your problem, though for future reference it'd be great to figure out what the issue was so I can fix it on all targets. Theoretically, Python should allow you to import the same module twice, so the fact that Coconut imports sys in addition to your code shouldn't be a problem. Do you have a traceback I could look at?
def partition(items, pivot, lprefix=, rprefix=): case items: match [head]::tail: if head < pivot: return partition(tail, pivot, [head]::lprefix, rprefix) else: return partition(tail, pivot, lprefix, [head]::rprefix) match ::_: return lprefix, rprefix
+in the first two return statements, but IIUC it forces my iterators to be converted to lists, which is not what I want...