def number_as_ssize_t(self, numobj):
    fnty = Type.function(self.py_ssize_t, [self.pyobj, self.pyobj])
    fn = self._get_function(fnty, name='PyNumber_AsSsize_t')
    exc_class = self.get_c_object('PyExc_OverflowError')
    return self.builder.call(fn, [numobj, exc_class])
def number_as_ssize_t(self, numobj):
    fnty = Type.function(self.py_ssize_t, [self.pyobj, self.pyobj])
    fn = self._get_function(fnty, name='PyNumber_AsSsize_t')
    exc_class = self.get_c_object('PyExc_OverflowError')
    return self.builder.call(fn, [numobj, exc_class])