class_docstr: Evolution records as a chronological list of dictionaries.
  
  Data can be retrieved via the :meth:`select` method given the appropriate
  names.
  
  The :class:`Logbook` class may also contain other logbooks referred to
  as chapters. Chapters are used to store information associated to a
  specific part of the evolution. For example when computing statistics
  on different components of individuals (namely :class:`MultiStatistics`),
  chapters can be used to distinguish the average fitness and the average
  size.
class_docstr_tok: ["Evolution","records","as","a","chronological","list","of","dictionaries",".","Data","can","be","retrieved","via","the",":","meth",":","`","select","`","method","given","the","appropriate","names",".","The",":","class",":","`","Logbook","`","class","may","also","contain","other","logbooks","referred","to","as","chapters",".","Chapters","are","used","to","store","information","associated","to","a","specific","part","of","the","evolution",".","For","example","when","computing","statistics","on","different","components","of","individuals","(","namely",":","class",":","`","MultiStatistics","`",")",",","chapters","can","be","used","to","distinguish","the","average","fitness","and","the","average","size","."]
docstr: Retrieve and delete element *index*. The header and stream will be
  adjusted to follow the modification.
  
  :param item: The index of the element to remove, optional. It defaults
               to the first element.
  
  You can also use the following syntax to delete elements.
  ::
  
      del log[0]
      del log[1::5]
docstr_tok: ["Retrieve","and","delete","element","*","index","*",".","The","header","and","stream","will","be","adjusted","to","follow","the","modification",".",":","param","item",":","The","index","of","the","element","to","remove",",","optional",".","It","defaults","to","the","first","element",".","You","can","also","use","the","following","syntax","to","delete","elements",".",":",":","del","log","[","0","]","del","log","[","1",":",":5","]"]
code: def pop(self, index=0):
      """Retrieve and delete element *index*. The header and stream will be
      adjusted to follow the modification.
  
      :param item: The index of the element to remove, optional. It defaults
                   to the first element.
  
      You can also use the following syntax to delete elements.
      ::
  
          del log[0]
          del log[1::5]
      """
      if index < self.buffindex:
          self.buffindex -= 1
      return super(self.__class__, self).pop(index)
  
imports: from bisect import bisect_right
  from collections import defaultdict
  from copy import deepcopy
  from functools import partial
  from itertools import chain
  from operator import eq
label_desc: Use image node_id 6 for calling the Logbook obj's underlying member method code with example usage: obj.pop(index) and returns: super