Implement default handler if nothing matches

Open
#185 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #186 by @hifi — closed without merging

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reading the existing all_events handler and the reactor-level event registration path. Clarify the intended name and dispatch behavior for a catch-all handler, including how unhandled events and non-standard reply codes are identified. Done should include an agreed upstream API and coverage for the fallback behavior.

Written by the indexing model from the issue text.

Description

enhancement help wanted

There's an undocumented(?) event handler named all_events but I'd also like to have a catch-all for unhandled events called unhandled_event or something so handlers can be registered at reactor level directly where they exist and others fall through to a catch-all.

I'm now at a point I either need to refactor my project completely to use a custom event handler based on all_events or get an upstream solution as there's too many non-standard reply codes to catch all of them manually.

Would this be doable?

Thanks.

Dominant language
Python
Stars
422
Forks
91
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jaraco/irc

All issues in jaraco/irc

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.