github smarie/python-makefun 1.11.0
1.11.0 - `partial` bugfixes and improvements + new `wraps` parameters

latest releases: 1.15.2, 1.15.1, 1.15.0...
3 years ago
  • @wraps now has new arguments prepend_arg and append_arg to quickly prepend or append a new parameter to a function signature. Fixes #65

  • add_signature_parameters can now receive string parameter names in its first and last arguments.

  • Improved generated docstring for partial with better support for preset positional args.

  • partial's behaviour is now aligned with the one in functools.partial in terms of arguments order and kind. Fixes #64

  • Bug fix: passing preset positional arguments to partial does not wipe out the rest of the signature any more. Fixes #62

See documentation page for details.

Don't miss a new python-makefun release

NewReleases is sending notifications on new releases.