def __init__(self, data=None, nbytes=None):
    GLObject.__init__(self)
    self._views = []
    self._valid = True
    self._nbytes = 0
    if (data is not None):
        if (nbytes is not None):
            raise ValueError('Cannot specify both data and nbytes.')
        self.set_data(data, copy=False)
    elif (nbytes is not None):
        self.resize_bytes(nbytes)
def __init__(self, data=None, nbytes=None):
    GLObject.__init__(self)
    self._views = []
    self._valid = True
    self._nbytes = 0
    if (data is not None):
        if (nbytes is not None):
            raise ValueError('Cannot specify both data and nbytes.')
        self.set_data(data, copy=False)
    elif (nbytes is not None):
        self.resize_bytes(nbytes)