pytoolz / pytoolz/toolz

Add an unzip function?

Open
#239 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.2k
Forks
280
Avg merge
6d 17h
Merged PRs (30d)
4

Description

It might useful to have an unzip function that is the inverse of zip. The trivial implementation is just

def unzip(seq):
    return zip(*seq)

It's a little nicer to have a function for this if your code is likely to be read by people who are new(ish) to python and could be confused by the * operator, but it's a pain to have to define it in every project.

(This was also mentioned here but it didn't get any discussion.)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing zip implementation and its tests in the toolz package. Check how related helpers are organized, then confirm that the proposed unzip behavior is covered by tests and matches the inverse-of-zip expectation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.