Is the different behaviour with Python 2's old style classes the reason PEP 8 recommends against doing "type(obj) is type(1)" and instead doing "isinstance(obj, int)"?
the reason the PEP recommends against type(...) checks directly is more for inheritance (if someone extends a class the type check no longer passes) -- though sometimes you want an exact check
Is the different behaviour with Python 2's old style classes the reason PEP 8 recommends against doing "type(obj) is type(1)" and instead doing "isinstance(obj, int)"?
the reason the PEP recommends against type(...) checks directly is more for inheritance (if someone extends a class the type check no longer passes) -- though sometimes you want an exact check