Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def __init__(self, space, default):
     self.default = rffi.cast(self.c_type,
                              capi.c_strtoll(space, default))