zip and zip_longest for dict
Project description
dict_zip
zip and zip_longest for dict.
Usage
dict_zip
dict_zip
is zip
for dict.
>>> from dict_zip import dict_zip
>>> dict_zip({'a': 1, 'b': 2}, {'a': 3, 'b': 4})
{'b': (2, 4), 'a': (1, 3)}
dict_zip_longest
dict_zip_longest
is zip_longest
for dict.
It fills with fillvalue (default: None
) when argument dict doesn't have match key.
>>> from dict_zip import dict_zip_longest
>>> dict_zip_longest({'a': 1, 'b': 2, 'c': 4}, {'a': 3, 'b': 4})
{'b': (2, 4), 'a': (1, 3), 'c': (4, None)}
LICENSE
The 3-Clause BSD License. See also LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dict_zip-0.1.0.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file dict_zip-0.1.0.tar.gz
.
File metadata
- Download URL: dict_zip-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de0bed5a7e4ea7fc140f6cd08a3d880f9c6d1bfde57bd2664539ac3c373ccb4e |
|
MD5 | 39c0b92c6039884e69cc5d2e5e4eec25 |
|
BLAKE2b-256 | a43c276c489fa5d53bd13903b4442d5809c365772b4e7f1aae9a0276e137e150 |
File details
Details for the file dict_zip-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: dict_zip-0.1.0-py2-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1963af855413056559cb7b27af52a2eebdc640b283e339399c8ba20a89460b |
|
MD5 | 4cb5c135cad00ee21af91ddf3dbc3a6e |
|
BLAKE2b-256 | 0b566fbc14c58180a8cf90460b12e5f43383f2f429b0ac4bd55df8d912d8a59f |