According to python documentation here is a statement:
Starting###8.15. types — Names for built-in types Starting in Python 2.2, built-in factory functions such as int()
int()and str()str()are also names for the corresponding types.
So isinstance isinstance() should be preferred over type
here is a link
http://docs.python.org/library/types.html type() .
According to python documentation here is a statement
Starting in Python 2.2, built-in factory functions such as int() and str() are also names for the corresponding types.
So isinstance should be preferred over type
here is a link http://docs.python.org/library/types.html
According to python documentation here is a statement:
###8.15. types — Names for built-in types Starting in Python 2.2, built-in factory functions such as
int()andstr()are also names for the corresponding types.
So isinstance() should be preferred over type() .
According to python documentation here is a statement
Starting in Python 2.2, built-in factory functions such as int() and str() are also names for the corresponding types.
So isinstance should be preferred over type
here is a link http://docs.python.org/library/types.html