예제 #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))