Recent Releases of kwandl

kwandl - v0.2.0

In version 0.2.0 we renamed replace_kwargs_in_calls to forward. In addition, forward supports more (corner) cases:

  • Now ignores "unexpanded" kwargs, i.e. it will only modify call(**kwargs), not call(kwargs).
  • Decorator now raises an exception if there is nothing in the decorated function to forward.
  • Nested function definitions can now also be decorated.
  • forward works on attributes as well now: thing.attribute(**kwargs) didn't work before, but does now.
  • forward now also works on non-global objects. The previous version only supported callables that were in the global namespace, but now local (and non-local) object calls with **kwargs will also be properly magically modified.

Full Changelog: https://github.com/egpbos/kwandl/compare/v0.1.0...v0.2.0

- Python
Published by egpbos almost 4 years ago

kwandl - v0.1.0

The replace_kwargs_in_calls decorator is introduced to replace **kwargs in function calls with only the keyword arguments relevant to that call.

- Python
Published by egpbos almost 4 years ago