PyNumber_AsSsize_t

Returns the Integral instance converted to an int. The instance is expected to be int or long or have an __int__ method. Steals integral's reference. error_format will be used to create the TypeError if integral isn't actually an Integral instance. error_format should be a format string that can accept a char* naming integral's type.

Availability: >= 2.5

version(Python_2_5_Or_Later)
extern (C)
PyNumber_AsSsize_t

Meta