You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signature of a function is an implementation detail and it would be nice it the candidate object could try different kind of permutations of args so that it can discover a matching callable independently if the detail of the signature.
For example:
candidate(*args) could test [object(*perm) for perm in itertools.permutations(args)].
Extend the above to use values in args for kwargs above len(args).
The text was updated successfully, but these errors were encountered:
alexamici
changed the title
Add support for automatic permutation of the args of a *wish*
Add support for automatic permutation of the args of a candidate
Jul 18, 2016
The signature of a function is an implementation detail and it would be nice it the
candidate
object could try different kind of permutations of args so that it can discover a matching callable independently if the detail of the signature.For example:
candidate(*args)
could test[object(*perm) for perm in itertools.permutations(args)]
.args
forkwargs
abovelen(args)
.The text was updated successfully, but these errors were encountered: