ipython / ipython/traitlets

Define Notification Types With Sentinels?

Abierto
#387 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
653
Forks
217
Merge medio
2 d 21 h
PR fusionados (30 d)
2

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.