Unzip a list of lists into ``nout`` outputs.
(ls, nout)
| 2298 | |
| 2299 | |
| 2300 | def unzip(ls, nout): |
| 2301 | """Unzip a list of lists into ``nout`` outputs.""" |
| 2302 | out = list(zip(*ls)) |
| 2303 | if not out: |
| 2304 | out = [()] * nout |
| 2305 | return out |
| 2306 | |
| 2307 | |
| 2308 | class disable_gc(ContextDecorator): |
no outgoing calls
no test coverage detected