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

wrap events using other modules #20

Open
2 of 3 tasks
da-h opened this issue Jul 9, 2020 · 0 comments
Open
2 of 3 tasks

wrap events using other modules #20

da-h opened this issue Jul 9, 2020 · 0 comments
Projects
Milestone

Comments

@da-h
Copy link
Owner

da-h commented Jul 9, 2020

API-proposal:

  • (bf1e3e9) event-object should behave like a list of all events per module, e.g. events["moduleA"] should be a list of all defined events in that module
  • (8d72615) (optional) introduce event.eventname.modules / event.eventname.fns for more granular control when using events directly
  • introduce child modules to make it possible to collect / choose / merge events from other modules dynamically (see Dynamic Modules #21)

Postponed:

  • redefine event-representation for better readability
    • although overloading __repr__ is indeed possible. In my experiments a object with a __call__ is slower than first-class wrapper-functions.
@da-h da-h added this to the v2.1 milestone Nov 11, 2020
@da-h da-h changed the title redefine events using other modules wrap events using other modules Dec 6, 2020
@da-h da-h added this to Open in v2.0 Dec 7, 2020
@da-h da-h removed this from Open in v2.0 Feb 3, 2021
@da-h da-h added this to To do in v2.1 via automation Feb 3, 2021
@da-h da-h modified the milestones: v3.0, v5.0 Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v2.1
To do
Development

No branches or pull requests

1 participant