def __getitem__(self, key):
    ' Create a view on this buffer. '
    view = DataBufferView(self, key)
    self._views.append(weakref.ref(view))
    return view
Create a view on this buffer.
def __getitem__(self, key):
    '  '
    view = DataBufferView(self, key)
    self._views.append(weakref.ref(view))
    return view