Skip to content

Releases: ducdetronquito/scalpl

0.4.2

11 Apr 10:06
a11a6a6
Compare
Choose a tag to compare

The version 0.4.2 of Scalpl includes the following changes:

Bugs:

  • Do not use a default value when proxying an empty dict (#24)

0.4.1

06 Nov 13:59
6c0f25a
Compare
Choose a tag to compare

The version 0.4.1 of Scalpl includes the following changes:

Regressions

  • setdefault did not create missing keys during the dictionary traversal (#22)

Features

  • Implement __repr__ to nicely display the proxied dictionary in a python shell

0.4.0

11 May 15:30
Compare
Choose a tag to compare

The version 0.4.0 of Scalpl includes the following changes:

Breaking changes

  • In order to match the original dict API, Cut.pop will raise a KeyError exception if the key is not found and no default value has been provided.

Bugs

  • Many bugs have been fixed thanks to a large rewrite of scalpl internals and more thorough unit tests

0.3.0

08 Aug 11:38
5987cef
Compare
Choose a tag to compare

The version 0.3.0 of Scalpl includes the following changes:

Breaking changes

  • Simplification of the API by removing the LightCut class. To keep the same behavior in your codebase, just replace the LightCutclass by the Cut class.

Features

  • Improvement of the error handling by providing more detailed exceptions.
    proxy = Cut(data)
    proxy["trainers.Ash.pokemons[42].name"] = "Charmander"
    > IndexError: Cannot access index '42' in path 'trainers.Ash.pokemons[42].name', because of error: IndexError('list index out of range',).
    
    proxy["trainers.Giovanni"]
    > KeyError: Cannot access key 'Giovanni' in path 'trainers.Giovanni', because of error: KeyError('Giovanni',).
  • Provide type hints for all the methods of the Cut class