Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6724655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:42:56+00:00 2026-05-26T09:42:56+00:00

Intro I’ve been tinkering with Twisted for the past few days, having picked up

  • 0

Intro

I’ve been tinkering with Twisted for the past few days, having picked up python less than a month ago. My first inclination was to play with something I know and use every day, IRC. I’ve gotten a basic IRC connection up and running thanks to the ircLogBot.py example.

Question

I want to have some arbitrary code that runs whenever an IRC event (PRIVMSG/CTCP/JOIN/PART) is received, and for purposes of debugging I’d like to be able to make changes to that piece of code and then reload it without shutting down the whole script and reconnecting to the IRC server.

Final Notes

It doesn’t have to be a solution that incorporates Twisted, as I do not fully understand it yet. Though I assume this is the sort of thing that twisted, being an event-driven framework, is likely designed to do well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:42:57+00:00Added an answer on May 26, 2026 at 9:42 am

    Schedule a recurring event (every few seconds) to reload your module being debugged. Use the builtin reload() function for this purpose.

    You might want to wrap it in a try/except to handle the case where you introduce an error in the module being debugged. That will keep the server alive in the face of errors 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As a brief intro, I spent the last few days writing my own template
SHORT INTRO: I'm having trouble with a 3D cube on a plane. The plane
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Intro I am new to GTK+ programming and am having difficulty understanding why the
Intro: I'm trying out LESS in an asp.net mvc environment. I use dotless for
Intro: I successfully implemented a WCF Service hosted in a Windows Service a few
Intro I've been given a messy excel dump straight into a table. Now I
Intro I have an issue with the SqlClient in .Net 4.0.30319 SP1Rel, in which
Intro I work in a facility where we have microscopes. These guys can be
Intro Let me apologise upfront for the long question. It is as short as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.