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","."]
code: def __delitem__(self, key):
      if isinstance(key, slice):
          for (i,) in range(*key.indices(len(self))):
              self.pop(i)
              for chapter in self.chapters.values():
                  chapter.pop(i)
      else:
          self.pop(key)
          for chapter in self.chapters.values():
              chapter.pop(key)
  
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 5 for calling the Logbook obj's underlying member method code with example usage: obj.__delitem__(key) without return types