Add an unzip function?
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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