@classmethod
    def from_binary(cls, byts, protocol_version):
        if byts is None:
            return None
        elif len(byts) == 0 and not cls.empty_binary_ok:
            return EMPTY if cls.support_empty_values else None
        return cls.deserialize(byts, protocol_version)
Support for query[index] and query[start:stop].
dataset/ETHPy150Open datastax/python-driver/cassandra/cqltypes.py/_CassandraType.from_binary--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/_BaseQuery.__getitem__