Re: [Twisted-Python] Asynchronously initializing objects in twisted.web?

2015-09-09 Thread Nagy, Attila
Ah, I was under the impression that listenTCP() can only be called before reactor.run(). I don't now where it came from. Thanks, On 09/08/15 20:41, Alexey Panyovin wrote: from twisted.webimport server, resource from twisted.internetimport reactor, defer class Simple(resource.Resource): i

[Twisted-Python] Usage of diffresource in Twisted's Trac

2015-09-09 Thread Adi Roiban
Is there anybody still using the diffresource links in Trac tickets? If you are still using it, do you think you can use the GitHub diff instead? Can we remove it from Trac? I prefer the GitHub diff as I can use side-by-side view and expand the diff or go to full file. Here is the associated ti

[Twisted-Python] Auto-Re: Usage of diffresource in Twisted's Trac

2015-09-09 Thread wangliyu
׍øçxã_5Ӟ4Óo8ð*'µéíO*^µìmþ™ZŠw!j»___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Usage of diffresource in Twisted's Trac

2015-09-09 Thread Glyph Lefkowitz
> On Sep 9, 2015, at 7:51 AM, Adi Roiban wrote: > > Is there anybody still using the diffresource links in Trac tickets? > > If you are still using it, do you think you can use the GitHub diff instead? > > Can we remove it from Trac? > > I prefer the GitHub diff as I can use side-by-side view

Re: [Twisted-Python] understanding IConsumer

2015-09-09 Thread Glyph Lefkowitz
> On Sep 8, 2015, at 11:24 PM, Roshan Cherian > wrote: > > I understand there is > https://twistedmatrix.com/documents/15.4.0/core/howto/producers.html > , > however I was hoping if there is a

Re: [Twisted-Python] Usage of diffresource in Twisted's Trac

2015-09-09 Thread Christopher Armstrong
> On Sep 9, 2015, at 1:31 PM, Glyph Lefkowitz wrote: > > >> On Sep 9, 2015, at 7:51 AM, Adi Roiban > > wrote: >> >> Is there anybody still using the diffresource links in Trac tickets? >> >> If you are still using it, do you think you can use the GitHub diff instead? >>

Re: [Twisted-Python] understanding IConsumer

2015-09-09 Thread Roshan Cherian
Thanks Glyph for setting my understanding right on this. By create a consumer I meant having to write one purely to understand the concept and have one running example so that when looking at consumers like ProducerStream it will make my understanding more clear. Thanks, -Roshan On Wed, Sep 9, 20

Re: [Twisted-Python] understanding IConsumer

2015-09-09 Thread Glyph Lefkowitz
The best way to come to a good understanding of IConsumer and IProducer is to write something that transfers large amounts of data over a slow, or heavily asymmetric link, and make sure its memory usage stays consistent; just implementing the methods on IConsumer won't be that illuminating. > O