1. xpahos
  2. WebHelpers


slug...@gmail.com  committed bc149bf


  • Participants
  • Parent commits b5d2fab
  • Branches trunk

Comments (0)

Files changed (2)

File docs/modules/containers.rst

View file
  • Ignore whitespace
 .. autofunction:: extract_keys
 .. autofunction:: only_some_keys
 .. autofunction:: ordered_items
+.. autofunction:: get_many
 .. autofunction:: transpose
 .. autofunction:: unique

File webhelpers/containers.py

View file
  • Ignore whitespace
             yield key, value
 def get_many(d, required=None, optional=None, one_of=None):
-    """Return a predictable number of dict values to handle optional keys.
+    """Extract values from a dict for unpacking into simple variables.
     ``d`` is a dict.