Define Notification Types With Sentinels?
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 653
- Fork
- 217
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
A notification which catches a `"change"` should also intuitively catch a `"special change"`.
I see two ways to accomplish this kind of behavior:
1. Split type strings at each `" "` similarly to how html classes are handled by css selectors.
2. Key notifiers on `type(sentinel)` and trace `type(sentinel).mro()` when triggering them.
Either way, I think that we could leverage [`EventReport`](https://github.com/ipython/traitlets/pull/251) types to do this.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.