Closed alchemyst closed 4 years ago
It is more robust to use isinstance(variable, typetocheck) than type(variable) == typetocheck.
isinstance(variable, typetocheck)
type(variable) == typetocheck
It is more robust to use
isinstance(variable, typetocheck)
thantype(variable) == typetocheck
.