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