NumPy

numpy.polynomial.polynomial.Polynomial.has_sametype

method

Polynomial.has_sametype(self, other)[source]

Check if types match.

New in version 1.7.0.

Parameters
otherobject

Class instance.

Returns
boolboolean

True if other is same class as self