C# Class Python.Runtime.PyNumber

Represents a generic Python number. The methods of this class are equivalent to the Python "abstract number API". See http://www.python.org/doc/current/api/number.html for details.
Inheritance: PyObject
Mostra file Open project: fkarb/pythonnet

Public Methods

Method Description
IsNumberType ( PyObject value ) : bool

IsNumberType Method

Returns true if the given object is a Python numeric type.

Protected Methods

Method Description
PyNumber ( ) : System
PyNumber ( IntPtr ptr ) : System

Method Details

IsNumberType() public static method

IsNumberType Method
Returns true if the given object is a Python numeric type.
public static IsNumberType ( PyObject value ) : bool
value PyObject
return bool

PyNumber() protected method

protected PyNumber ( ) : System
return System

PyNumber() protected method

protected PyNumber ( IntPtr ptr ) : System
ptr System.IntPtr
return System