Unfortunately it seems Marc was potentially talking about a non-existent 'feature' - Reactor.fire() just does the following to get the handler for the event:
Just a simple dictionary lookup, no regexes involved. We could debate the merits of using pattern matching on signal handlers here (more flexible, put potentially slower), or we could just go with what works now.
Unfortunately it seems Marc was potentially talking about a non-existent 'feature' - Reactor.fire() just does the following to get the handler for the event:
handlers = self._event_ handlers. get(event_ type, ())
Just a simple dictionary lookup, no regexes involved. We could debate the merits of using pattern matching on signal handlers here (more flexible, put potentially slower), or we could just go with what works now.