示例#1
0
文件: converter.py 项目: xen0n/pypy
 def __init__(self, space, default):
     self.valid_default = False
     try:
         self.default = rffi.cast(self.c_type, capi.c_strtoll(space, default))
         self.valid_default = True
     except Exception:
         self.default = rffi.cast(self.c_type, 0)
示例#2
0
 def __init__(self, space, default):
     self.default = rffi.cast(self.c_type,
                              capi.c_strtoll(space, default))