Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

zip and zip_longest for dict

Project description

dict_zip

zip and zip_longest for dict.

CircleCI

License

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dict-zip, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size dict_zip-0.1.0-py2-none-any.whl (3.0 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size dict_zip-0.1.0.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page