Beispiel #1
0
// PyObject* PyInt_FromSsize_t(Py_ssize_t ival)
// Return value: New reference.
// Create a new integer object with a value of ival. If the value is larger than LONG_MAX or smaller than LONG_MIN, a long integer object is returned.
//
// New in version 2.5.
func PyInt_FromSsize_t(val int) *PyObject {
	return togo(C.PyInt_FromSsize_t(C.Py_ssize_t(val)))
}
Beispiel #2
0
func NewInt64(i int64) *Int {
	return newInt(C.PyInt_FromSsize_t(C.Py_ssize_t(i)))
}