Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!news.astraweb.com!border5.a.newsrouter.astraweb.com!border2.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'anyway.': 0.04; 'handler': 0.04; 'arguments': 0.07; 'pypi': 0.07; 'welcome.': 0.07; 'url:blog': 0.09; 'subject:method': 0.09; 'useful,': 0.13; 'from:addr:tyler': 0.16; 'from:addr:tysdomain.com': 0.16; 'from:name:littlefield, tyler': 0.16; 'message-id:@tysdomain.com': 0.16; 'reasonably': 0.16; 'received:69.164': 0.16; 'received:69.164.206': 0.16; 'received:69.164.206.65': 0.16; 'received:tds-solutions.net': 0.16; 'subject:handling': 0.16; 'written': 0.20; 'all:': 0.22; 'received:192.168.1.100': 0.22; "i'd": 0.22; 'allows': 0.25; 'header:User-Agent:1': 0.26; 'small,': 0.27; 'project:': 0.29; 'url:code': 0.29; 'probably': 0.29; 'feedback': 0.30; 'url:python': 0.32; 'could': 0.32; 'minutes,': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'project': 0.34; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'wanted': 0.36; 'url:org': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'first': 0.61; 'url:p': 0.63; 'details': 0.63; 'article': 0.78; 'light-weight': 0.84; 'moderately': 0.84; 'subject:events': 0.84; 'subject:weight': 0.84; 'care,': 0.91 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on wuff X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Date: Thu, 27 Sep 2012 13:05:11 -0600 From: "Littlefield, Tyler" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: teventlet: a light-weight method for handling events Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348772738 news.xs4all.nl 6911 [2001:888:2000:d::a6]:52539 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30320 Hello all: This was my first PyPi project to create. I'd like some feedback as to whether or not something like this is even moderately useful, and what I could do better with it. The blog article that details some of this is: http://tds-solutions.net/blog/?p=137 And the PyPi page: http://pypi.python.org/pypi/teventlet Essentially, Teventlet is just a handler that allows the registration of multiple callbacks; when something calls invoke, it dispatches all arguments to each individual callback. It's pretty small, and probably something anyone who is reasonably skilled could have written in a few minutes, but I wanted to put it out there anyway. Any ideas, suggestions/etc would be welcome. -- Take care, Ty http://tds-solutions.net The aspen project: a barebones light-weight mud engine: http://code.google.com/p/aspenmud He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.