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

Easier post_send API #77

Open
jtpereyda opened this issue Aug 31, 2016 · 0 comments
Open

Easier post_send API #77

jtpereyda opened this issue Aug 31, 2016 · 0 comments

Comments

@jtpereyda
Copy link
Owner

jtpereyda commented Aug 31, 2016

The post_send API is defined by a function, and it's not exceedingly intuitive. Consider using an interface instead.

Inspired by this talk: The End Of Object Inheritance & The Beginning Of A New Modularity

Essentially, Python is not defined to handle functions this way. It can, but the language lends itself to using objects rather than just functions. One of the speakers argues that objects/interfaces are better than functions for this case.

The current way of registering post_send is also pretty clunky. We could take a more event handler style approach and allow multiple functions.

I'm not sure what the best approach is. This should be settled after we see more use cases.

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

1 participant