github cdgriffith/Box 8.0.2
Version 8.0.2

54 minutes ago

Changes

  • Fixing #368 adding to a frozen Box leaving the new nested Boxes and BoxLists mutable, so the result could not be hashed, also for a plain dict + frozen Box (thanks to Vansh Jenikumar Barfiwala)
  • Fixing BoxList.copy() returning a plain list instead of a BoxList, losing its box_options (box_dots, frozen_box) and item comments, so a frozen BoxList's copy could be changed (thanks to Waseem Mushtaq)
  • Fixing slicing a frozen Box, e.g. box[:2], raising BoxError instead of returning a frozen Box (thanks to anticipate218)
  • Fixing box_from_string(string_type="yaml") raising TypeError instead of BoxError when no YAML library is installed and Box is not compiled with Cython (thanks to SU, Yanyu)
  • Fixing BoxList.from_csv and box_from_file for a csv file raising TypeError on Box options such as frozen_box and on csv reader options such as delimiter (thanks to youdie006)
  • Fixing default_box_attr with a non-empty list returning an empty BoxList, it now returns a copy of the list (thanks to imsurya26)
  • Fixing #373 Box(obj), update(obj) and merge_update(obj) misreading an object that has keys() and item access but is not a Mapping, such as a sqlite3.Row: the constructor read it as an iterable of pairs (wrong data, or TypeError), and update() and merge_update() iterated it for its keys where dict.update calls keys(). All three now read it as dict() does (thanks to Greg Stein)
  • Fixing #375 calling BoxList.__init__ again appending to the existing items instead of replacing them like list does, and growing without end when passed itself (thanks to GreedyC)
  • Fixing #377 ConfigBox deleting the existing value (and its comment) when setting or updating a differently-cased key fails box_recast (thanks to Amal Saidov)

Don't miss a new Box release

NewReleases is sending notifications on new releases.