Releases: 0scarB/tail-recursive
Releases · 0scarB/tail-recursive
2.1.0
2.0.0
Added
- Overrides for most dunder methods called on
tail_call(...)
.
Changed
- nested call mode has now been renamed to feature set.
There is the base and full feature set.
The full feature set enables nested tail calls and dunder overrides. tail_call(...).__repr__
no longer pretty prints a string relating to the tail call.
Usetail_call(...)._to_string()
to pretty print tail calls.
1.2.0
Added
__repr__
for functions decorated withtail_recursive
__repr__
for return values oftail_call
- Resolves nested tail calls (i.e.
<function>.tail_call([..., ]<function>.tail_call(...)[, ...])
) - Mode parameter for turning resolution of tail calls on or off (i.e.
@tail_recursive(nested_call_mode="resolve_nested_calls"|"do_not_resolve_nested_calls"|NestedCallMode.RESOLVE_NESTED_CALLS|NestedCallMode.DO_NOT_RESOLVE_NESTED_CALLS)
)