Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compose, compose_left should allow you to name the composition #479

Closed
uriva opened this issue Feb 29, 2020 · 2 comments
Closed

compose, compose_left should allow you to name the composition #479

uriva opened this issue Feb 29, 2020 · 2 comments

Comments

@uriva
Copy link

uriva commented Feb 29, 2020

When debugging code that has use of compose, e.g.

my_func = toolz.compose(stage3, stage2, stage1)

And encountering an exception it might be hard to know where it came from, especially if stageX is itself a composition of elementary functions like map, filter etc'.

If we could somehow do my_func = toolz.compose(stage1, stage2, stage3, name="do_something"), and have exceptions return the line where the composition was done, that could be useful.

@mentalisttraceur
Copy link

Following the pattern in #472 and #463 , do you want to also close this old issue, since gamla solves this too?

@uriva
Copy link
Author

uriva commented Feb 16, 2023

yes ty

@uriva uriva closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants