dynamo_operation.py
def __convert_float_into_decimal(self, elem):
        """
        Converts all sub-elements of type Float into Decimal.
        This is required because a DynamoDB limitation.
        :param elem: hash, array or obj
        """
        if isinstance(elem, dict):
            for k, v in elem.items():
                elem[k] = self.__convert_float_into_decimal(v)
        elif isinstance(elem, list):
            for i in range(0, len(elem)):
                elem[i] = self.__convert_float_into_decimal(elem[i])
        elif isinstance(elem, float):
            elem = Decimal(f'{elem}')
        return elem

        Converts all sub-elements of type Float into Decimal.
        This is required because a DynamoDB limitation.
        :param elem: hash, array or obj
        
Converts all sub-elements of type Float into Decimal.
This is required because a DynamoDB limitation.
Converts all sub - elements of type Float into Decimal . This is required because a DynamoDB limitation .
def __convert_float_into_decimal(self, elem):
        if isinstance(elem, dict):
            for k, v in elem.items():
                elem[k] = self.__convert_float_into_decimal(v)
        elif isinstance(elem, list):
            for i in range(0, len(elem)):
                elem[i] = self.__convert_float_into_decimal(elem[i])
        elif isinstance(elem, float):
            elem = Decimal(f'{elem}')
        return elem
def __convert_float_into_decimal ( self , elem ) : if isinstance ( elem , dict ) : for k , v in elem . items ( ) : elem [ k ] = self . __convert_float_into_decimal ( v ) elif isinstance ( elem , list ) : for i in range ( 0 , len ( elem ) ) : elem [ i ] = self . __convert_float_into_decimal ( elem [ i ] ) elif isinstance ( elem , float ) : elem = Decimal ( f'{elem}' ) return elem
Converts all sub-elements of type Float into Decimal.
Converts all sub - elements of type Float into Decimal .
"""
        Converts all sub-elements of type Float into Decimal.
        This is required because a DynamoDB limitation.
        :param elem: hash, array or obj
        """
self
elem
hash, array or obj
hash array or obj