title: How to remove a range of bytes from a bytes object in python?
body: <p>I am pretty new to python and sometimes things that seems pretty easy become lot complicated than expected</p>
  
  <p>I am currently using a bytes buffer to read from a socket:</p>
  
  <p>data = self.socket.recv(size)</p>
  
  <p>and then process part of that buffer and need remove it</p>
  
  <p>The thing is that I've been looking for a way to do that and didn't find a clue in the whole evening, I am pretty sure that I am not getting any fair results because of the words involved, or maybe it's not possible</p>
  
  <p>I tried with "del" but got an error saying that it's not supported</p>
  
  <p>Am I doing it the wrong way? Maybe someone could lead me the right way? :)</p>