1. Ludia
  2. Untitled project
  3. dynamodb-mapper

Source

dynamodb-mapper / dynamodb_mapper / model.py

Diff from to

File dynamodb_mapper/model.py

     Inserting a new item issues an atomic add on the '__max_hash_key__' value.
     Its new value is returned and used as the primary key for the new elem.
 
-    Note that hash_key_value is set to '-1' while ``__max_hash_key__`` initial
-    value is 0. This will element at key '0' unused. It's actually a garbage item
-    for cases where a value is manually added to an unitialized index.
+    Note that hash_key_value is set to '-1' while ``__max_hash_key__`` implicit
+    initial value is 0. This guarantees element at key '0' is unused. It's actually
+    a garbage item for cases where a value is manually added to an unitialized index.
     """
 
 _JSON_TYPES = frozenset([list, dict])