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