Repository navigation
1.5.0 - Major refactoring and bugfixes
Function creation API:
- renamed all
handlerintoimplfor clarity. Fixes #27. - renamed
addsourceandaddhandlerarguments asadd_sourceandadd_implrespectively, for consistency - signatures can not be provided as a callable anymore - that was far too confusing. If the reference signature is a callable, then use
@wrapsorcreate_wrapper, because that's probably what you want to do (= reuse not only the signature but also all metadata). Fixes #26. - the function name is now optional in signatures provided as string.
- now setting
__qualname__attribute - default function name, qualname, doc and module name are the ones from
func_implincreate_functionand@with_signature, and are the ones from the wrapped function increate_wrapperand@wrapsas intuitively expected. Fixes #28.
Wrappers:
@wrapsandcreate_wrappernow offer anew_sigargument. In that case the__wrapped__attribute is not set. Fixes #25.@wrapsandcreate_wrappernow correctly preserve the__dict__and other metadata from the wrapped item. Fixes #24
See documentation page for details.