数字协议

int PyNumber_Check ( PyObject * o )
属于 稳定 ABI (应用程序二进制接口) .

返回 1 if the object o provides numeric protocols, and false otherwise. This function always succeeds.

3.8 版改变: 返回 1 if o is an index integer.