Results 1 to 2 of 2

Thread: Python events

  1. #1
    Join Date
    Mar 2007
    Beans
    28

    Python events

    I am wanting to create an event kernel that tails a log file and throws events based on those parsed from the log in real time. What is the most pythonic way of implementing this design? I can think of several ways to accomplish this, but I hope there is some premade event framework that I can use.

  2. #2
    Join Date
    Apr 2006
    Location
    Phoenix, AZ
    Beans
    251
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Python events

    Quote Originally Posted by Jmccaffrey View Post
    I am wanting to create an event kernel that tails a log file and throws events based on those parsed from the log in real time. What is the most pythonic way of implementing this design? I can think of several ways to accomplish this, but I hope there is some premade event framework that I can use.
    Try the observer design pattern.

    http://aspn.activestate.com/ASPN/Coo.../Recipe/415310

    -Skeeterbug

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •