示例#1
0
 def __new__(cls, value="0", context=None):
     return decimal.Decimal.__new__(cls, utils.str_(value), context)
示例#2
0
文件: generic.py 项目: USGM/PyPDF2
 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))
示例#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))