keypoolClasses and helpers to generate and maintain a pool of unique integer keys | |
Download |
keypool Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Charlie Liban
- Publisher web site:
- https://github.com/tyrannosaur/
keypool Tags
keypool Description
keypool is a Python module that provides classes and helpers to generate and maintain a pool of unique integer keys. Priority is given to reusing freed keys rather than generating new ones.This package is meant for situations where keys for a dict are irrelevant or arbitrary.Typical usage:from keypool import KeypoolDictitems = KeypoolDict()# Assign a value with a unique, generated keyitems = 'hello, world'# Assign a value but capture the keykey = items.setitem('hello again, world')# Assign anything except an integer, like a normal dictitems = 'world'Product's homepage
keypool Related Software