No, because if a bytes object is obscured by an iterator ``isinstance(data, bytes)`` will fail but we'll still get integers. Such as ``iter(b"foo")``.