Re: [Twisted-Python] Limitations & future extension of twisted

2011-11-02 Thread gelin yan
Hi all I want to know which version of twisted will be supposed to support IPv6... Thanks On Tue, Nov 1, 2011 at 7:41 PM, Phil Mayers wrote: > On 01/11/11 11:34, nivedita datta wrote: > > Hi all, > > > > I have to give a talk on twisted. Can anyone let me know about the > > limitations of tw

Re: [Twisted-Python] Global reactor unit tests in the Twisted test suite

2011-11-02 Thread Phil Mayers
On 11/01/2011 11:49 PM, Glyph wrote: > of "real" reactors. New contributors sometimes say that they don't feel > like the code is "really" being tested unless they're testing against > the real implementation of something, and it may not be immediately > obvious that testing against a not-real imp

Re: [Twisted-Python] Limitations & future extension of twisted

2011-11-02 Thread Phil Mayers
On 11/02/2011 07:10 AM, gelin yan wrote: > Hi all > > I want to know which version of twisted will be supposed to support IPv6... http://twistedmatrix.com/trac/wiki/IPv6 ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatr

Re: [Twisted-Python] Global reactor unit tests in the Twisted test suite

2011-11-02 Thread Phil Mayers
On 11/02/2011 07:55 AM, Phil Mayers wrote: > Without commenting on everything else in the thread s/thread/message/ Dammit... ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-pyt

[Twisted-Python] Slow PB imports

2011-11-02 Thread Marcel Gädigk
Hi, i using the Perspective Broker and i have problems with the speed of importing the modules. It takes 15 - 17 seconds for importing the Reactor and the PBServerFactory (or other pb imports). If i import the reactor or the pb imports alone it takes in avg. 2-3 seconds. def ImportIt(): f

[Twisted-Python] Interleaving long running loops

2011-11-02 Thread Umit Oztosun
Hello, I have been developing a medium/large scale application using twisted and very happy about it. It is composed of two parts, an application server and a PyQt based client. Perspective broker is used for all communication between client and server. Server mainly talks with a database, formats

Re: [Twisted-Python] Interleaving long running loops

2011-11-02 Thread Phil Mayers
On 02/11/11 10:40, Umit Oztosun wrote: > I have lots of similar loops all over the place and a more generic > solution would be great. I am also aware of deferToThread but I am > trying to avoid using threads. Well, deferToThread gives you all kinds of problems re: talking to the reactor from th

[Twisted-Python] t.i.task.Cooperator & inlineCallbacks mashup

2011-11-02 Thread Phil Mayers
I only just noticed today that if a generator passed to a CooperativeTask does: result = yield some_deferred() ...it doesn't work, because CooperativeTask doesn't .send() the result of the deferred bacn into the generator. Is this intentional? If not, would that behaviour be desirable? It s

[Twisted-Python] twistd/tac : when does logging start?

2011-11-02 Thread Tobias Oberstein
I've got a Twisted application started via a tac file. Within the tac, I also initialize a database and create a db pool for use with adbapi. Now it seems that log messages from the network services are logged, but not from the initial DB setup stuff. When exactly does Twistd start the logging

Re: [Twisted-Python] twistd/tac : when does logging start?

2011-11-02 Thread Luke Marsden
On Wed, 2011-11-02 at 04:38 -0700, Tobias Oberstein wrote: > I've got a Twisted application started via a tac file. > > Within the tac, I also initialize a database and create a db pool for use > with adbapi. > > Now it seems that log messages from the network services are logged, but not > fro

Re: [Twisted-Python] twistd/tac : when does logging start?

2011-11-02 Thread Tobias Oberstein
> Hi Tobias, > > You need to do your intialisation (database connections, etc) in a > startService > method of your application, rather than (as you're probably > doing) in the __init__ method. > > Hope this helps. Hi Luke, yeah, that helps;) Thanks! _

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread Itamar Turner-Trauring
On Wed, 2011-11-02 at 10:34 +0100, Marcel Gädigk wrote: > Hi, > > i using the Perspective Broker and i have problems with the speed of > importing the modules. > It takes 15 - 17 seconds for importing the Reactor and the > PBServerFactory (or other pb imports). > If i import the reactor or the p

Re: [Twisted-Python] t.i.task.Cooperator & inlineCallbacks mashup

2011-11-02 Thread Itamar Turner-Trauring
On Wed, 2011-11-02 at 11:24 +, Phil Mayers wrote: > I only just noticed today that if a generator passed to a > CooperativeTask does: > >result = yield some_deferred() > > ...it doesn't work, because CooperativeTask doesn't .send() the result > of the deferred bacn into the generator. >

[Twisted-Python] Prhaps 11.1rc2 should include #4669?

2011-11-02 Thread Itamar Turner-Trauring
It seems like keeping IOCP from being broken on win64 is worth integrating. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread exarkun
On 12:36 pm, ita...@itamarst.org wrote: > >2. Maybe try a packaging Twisted in an .egg file. This isn't a great idea, since Twisted doesn't support being installed as a zipfile (which is what I guess you meant, since a .egg directory wouldn't be any different from the standard installation in te

Re: [Twisted-Python] t.i.task.Cooperator & inlineCallbacks mashup

2011-11-02 Thread exarkun
On 11:24 am, p.may...@imperial.ac.uk wrote: >I only just noticed today that if a generator passed to a >CooperativeTask does: > > result = yield some_deferred() > >...it doesn't work, because CooperativeTask doesn't .send() the result >of the deferred bacn into the generator. > >Is this intention

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread Itamar Turner-Trauring
On Wed, 2011-11-02 at 13:01 +, exar...@twistedmatrix.com wrote: > This isn't a great idea, since Twisted doesn't support being installed > as a zipfile (which is what I guess you meant, since a .egg directory > wouldn't be any different from the standard installation in terms of > import pe

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread Marcel Gädigk
I deleted all *.pyc files from the twisted Folder. After the *.pyc generation python imports pb and reactor in around 5 seconds. Thx for your help. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailma

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread Antoine Pitrou
On Wed, 02 Nov 2011 10:34:27 +0100 Marcel Gädigk wrote: > i using the Perspective Broker and i have problems with the speed of > importing the modules. > It takes 15 - 17 seconds for importing the Reactor and the > PBServerFactory (or other pb imports). > If i import the reactor or the pb import

Re: [Twisted-Python] t.i.task.Cooperator & inlineCallbacks mashup

2011-11-02 Thread Phil Mayers
On 02/11/11 13:08, exar...@twistedmatrix.com wrote: > Yes. Cooperator is for iterators, not generators, making send unusable Ah of course. > in the general case. Cooperator also isn't a replacement for > inlineCallbacks. That was essentially my question ;o) __

Re: [Twisted-Python] t.i.task.Cooperator & inlineCallbacks mashup

2011-11-02 Thread Phil Mayers
On 02/11/11 12:39, Itamar Turner-Trauring wrote: > On Wed, 2011-11-02 at 11:24 +, Phil Mayers wrote: >> I only just noticed today that if a generator passed to a >> CooperativeTask does: >> >> result = yield some_deferred() >> >> ...it doesn't work, because CooperativeTask doesn't .send() t

Re: [Twisted-Python] any chat (comet) application for twisted web

2011-11-02 Thread Alexey Ganzha
Hi! Thanks again, Glyph for the link. It took me less an hour to embed chat app in existent site (except that nevow is hosted on lanuchpad now, instead of divmod.org). It is ready to use, just according to the tutorial. Just add some js and css to chatthing package to skin athena app. One proble

Re: [Twisted-Python] any chat (comet) application for twisted web

2011-11-02 Thread Glyph Lefkowitz
On Nov 2, 2011, at 2:34 PM, Alexey Ganzha wrote: > Hi! > Thanks again, Glyph for the link. > It took me less an hour to embed chat app in existent site (except that > nevow is hosted on lanuchpad now, instead of divmod.org). > It is ready to use, just according to the tutorial. Just add some js

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread Glyph Lefkowitz
On Nov 2, 2011, at 9:10 AM, Itamar Turner-Trauring wrote: > On Wed, 2011-11-02 at 13:01 +, exar...@twistedmatrix.com wrote: > >> This isn't a great idea, since Twisted doesn't support being installed >> as a zipfile (which is what I guess you meant, since a .egg directory >> wouldn't be an

Re: [Twisted-Python] Prhaps 11.1rc2 should include #4669?

2011-11-02 Thread Glyph Lefkowitz
On Nov 2, 2011, at 8:44 AM, Itamar Turner-Trauring wrote: > It seems like keeping IOCP from being broken on win64 is worth > integrating. Did it work on win64 in 11.0? If so, then this is a regression and needs to be fixed. If not, I'd say this is just a good motivation to get done with 11.1 a

Re: [Twisted-Python] Global reactor unit tests in the Twisted test suite

2011-11-02 Thread Glyph Lefkowitz
On Nov 2, 2011, at 3:55 AM, Phil Mayers wrote: > But I'll note that most people I've seen crib from existing test code > during the early phases of TDD, tutorials or not - and if most test code > in Twisted uses the real reactor... Thanks for volunteering to fix some of our existing tests, the

Re: [Twisted-Python] Prhaps 11.1rc2 should include #4669?

2011-11-02 Thread Itamar Turner-Trauring
On Wed, 2011-11-02 at 18:54 -0400, Glyph Lefkowitz wrote: > On Nov 2, 2011, at 8:44 AM, Itamar Turner-Trauring wrote: > > > It seems like keeping IOCP from being broken on win64 is worth > > integrating. > > Did it work on win64 in 11.0? > > If so, then this is a regression and needs to be fixed

Re: [Twisted-Python] Slow PB imports

2011-11-02 Thread Kevin Horn
On Wed, Nov 2, 2011 at 5:51 PM, Glyph Lefkowitz wrote: > > I'd love to fix this > > -glyph > > Is there a ticket? Maybe there should be... Kevin Horn ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mail

Re: [Twisted-Python] Prhaps 11.1rc2 should include #4669?

2011-11-02 Thread Glyph
On Nov 2, 2011, at 9:35 PM, Itamar Turner-Trauring wrote: > On Wed, 2011-11-02 at 18:54 -0400, Glyph Lefkowitz wrote: >> On Nov 2, 2011, at 8:44 AM, Itamar Turner-Trauring wrote: >> >>> It seems like keeping IOCP from being broken on win64 is worth >>> integrating. >> >> Did it work on win64 in