def __copy__(self):
        """Return a new copy of the ConstBitStream for the copy module."""
        # Note that if you want a new copy (different ID), use _copy instead.
        # The copy can use the same datastore as it's immutable.
        s = ConstBitStream()
        s._datastore = self._datastore
        # Reset the bit position, don't copy it.
        s._pos = 0
        return s
def __copy__ ( self ) : s = ConstBitStream ( ) s . _datastore = self . _datastore s . _pos = 0 return s
Return a new copy of the ConstBitStream for the copy module.