Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

added 162 characters in body
Source Link
Grijesh Chauhan
  • 58.6k
  • 20
  • 145
  • 214

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() and str() are also names for the corresponding types.

So isinstance() should be preferred over type() .

Source Link
Xinus
  • 30.8k
  • 35
  • 123
  • 168

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

lang-py

AltStyle によって変換されたページ (->オリジナル) /