Example #1
0
 def __new__(cls, value="0", context=None):
     return decimal.Decimal.__new__(cls, utils.str_(value), context)
Example #2
0
 def __new__(cls, value="0", context=None):
     try:
         return decimal.Decimal.__new__(cls, utils.str_(value), context)
     except:
         return decimal.Decimal.__new__(cls, utils.str_(value))
Example #3
0
 def __new__(cls, value="0", context=None):
     try:
         return decimal.Decimal.__new__(cls, utils.str_(value), context)
     except:
         return decimal.Decimal.__new__(cls, str(value))