def attribute_mapped_collection(attr_name):
 getter = _SerializableAttrGetter(attr_name)
 return (lambda : MappedCollection(getter))

def attribute_mapped_collection ( attr_name ) : getter = _SerializableAttrGetter ( attr_name ) return ( lambda : MappedCollection ( getter ) )
a dictionary-based collection type with attribute-based keying .