Re: [Twisted-Python] complete producer/consumer example

2009-12-15 Thread Benjamin Rutt
Ok, this is done. See http://twistedmatrix.com/trac/ticket/4171. I decided to start by just adding the example. For me to rework the whole howto around this example, I'm afraid I'd need to understand how it all works a bit more than I do now. So, baby steps first. Do you need anything more fro

Re: [Twisted-Python] UDP crashes python.exe when using IOCPReactor

2009-12-15 Thread Josh Albrecht
Thanks. I changed the way I was installing the reactor, but it had no effect. I did not realize that Windows 7 was unsupported. However, I've also reproduced this bug on windows XP, so I think it's a larger issue, unfortunately. Thanks, - Josh On Tue, Dec 15, 2009 at 8:39 PM, wrote: > On 15

Re: [Twisted-Python] UDP crashes python.exe when using IOCPReactor

2009-12-15 Thread exarkun
On 15 Dec, 11:56 pm, thej...@gmail.com wrote: >I've been struggling to move a large program over to IOCPReactor, but >it is causing python.exe to crash on windows. I reduced the error to >this program, which crashes almost immediately on all the machines >I've tested it on. Am I doing something w

[Twisted-Python] UDP crashes python.exe when using IOCPReactor

2009-12-15 Thread Josh Albrecht
I've been struggling to move a large program over to IOCPReactor, but it is causing python.exe to crash on windows. I reduced the error to this program, which crashes almost immediately on all the machines I've tested it on. Am I doing something wrong? ###

Re: [Twisted-Python] Downpour - new project using Twisted

2009-12-15 Thread Phil Christensen
This is really cool, I can't wait to check it out. I also wanted to suggest that you add your project to the 'tx' super-group on Launchpad. It will group it with a lot of other Twisted community projects, and has some other nice features. You can even have it automagically sync the launchpad re

[Twisted-Python] Downpour - new project using Twisted

2009-12-15 Thread Jeremy Jongsma
I just posted my latest project - Downpour, a web-based BitTorrent client using twisted and twisted-web. Feel free to try it out and send me any comments. It hasn't been tested on Windows yet, so any trip reports for that would also be appreciated. http://home.jongsma.org/software/downpour/ Cou

Re: [Twisted-Python] zope.interface

2009-12-15 Thread Glyph Lefkowitz
On Dec 15, 2009, at 1:11 PM, Jared Gisin wrote: > I completely fail to see why zope.interface is even needed. It's not Pythonic > at all and it contributes to unnecessary code bloat. Oh gosh! You're absolutely right! I never noticed it before! I just got out my Pythonic-o-meter and measured

Re: [Twisted-Python] zope.interface

2009-12-15 Thread Jared Gisin
I completely fail to see why zope.interface is even needed. It's not Pythonic at all and it contributes to unnecessary code bloat. What's wrong with writing subclasses? I've never had a case where that wasn't sufficient. Instead of filling up your files with all of these empty class definition

Re: [Twisted-Python] deferred list behaviour

2009-12-15 Thread Nathan
On Tue, Dec 15, 2009 at 10:34 AM, wrote: > On 05:17 pm, nathan.sto...@gmail.com wrote: >>Are the results of a deferred list guaranteed to be in the same order >>as the list of deferreds that was given to it? >> >>i.e. if I pass [d1, d2, d3] to a deferred list and the results list in >>the call ba

Re: [Twisted-Python] deferred list behaviour

2009-12-15 Thread exarkun
On 05:17 pm, nathan.sto...@gmail.com wrote: >Are the results of a deferred list guaranteed to be in the same order >as the list of deferreds that was given to it? > >i.e. if I pass [d1, d2, d3] to a deferred list and the results list in >the call back has [(True, (something,)), (False, (something,)

[Twisted-Python] deferred list behaviour

2009-12-15 Thread Nathan
Are the results of a deferred list guaranteed to be in the same order as the list of deferreds that was given to it? i.e. if I pass [d1, d2, d3] to a deferred list and the results list in the call back has [(True, (something,)), (False, (something,)), (True, (something))] is it guaranteed that ite

Re: [Twisted-Python] plugin system

2009-12-15 Thread exarkun
On 14 Dec, 11:48 pm, cel...@gmail.com wrote: >Guys, I'am new to twisted and I've read the documentation about the >plugin system and the components but I can't make it, I really do not >get it well, do you guys have any examples there to see if I can get >it :) > >Thanks a lot Nevow, Axiom, Mantis

Re: [Twisted-Python] complete producer/consumer example

2009-12-15 Thread exarkun
On 01:54 am, rut...@osu.edu wrote: >How does the below example look as a complete producer/consumer >example? If >it's well received, perhaps we can add it to the online documentation >at >http://twistedmatrix.com/documents/current/core/howto/producers.html in >the >"Further Reading" section?

Re: [Twisted-Python] subprocess.Popen

2009-12-15 Thread Aníbal Pacheco
Thanks! I think that is just what I need: http://twistedmatrix.com/documents/current/core/howto/process.html On Tue, Dec 15, 2009 at 3:26 AM, Tim Allen wrote: > On Tue, Dec 15, 2009 at 02:32:40AM -0200, Aníbal Pacheco wrote: >> Is it possible to attach a callback to a process launched using >> su