[Twisted-Python] banana SIZE_LIMIT

2013-03-18 Thread Sergey Gerasimov
Hi, Are they some simple ways (keeping existing interface) around BananaError for long values returned from PB methods? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] more complex IBodyProducer?

2013-03-18 Thread Kevin McIntyre
has anyone implemented a more complex IBodyProducer than class POSTRequestProducer(): implements(IBodyProducer) def __init__(self, body): self.body = body self.length = len(self.body) def startProducing(self, consumer): consumer.write(self.body) return

Re: [Twisted-Python] Testing Twisted code without trial

2013-03-18 Thread Adi Roiban
On 22 January 2013 22:03, wrote: > On 09:29 am, a...@roiban.ro wrote: >>On 22 January 2013 02:21, wrote: >>>On 20 Jan, 02:35 pm, a...@roiban.ro wrote: I agree that this is a ugly hack and I removed the project. > > Hi Adi, > > trial does what it does by touching a lot of internal stuff as wel

Re: [Twisted-Python] banana SIZE_LIMIT

2013-03-18 Thread Glyph
On Mar 18, 2013, at 7:49 AM, Sergey Gerasimov wrote: > Hi, > > Are they some simple ways (keeping existing interface) around BananaError > for long values returned from PB methods? Don't return long values. They block the connection. Chunk them up and stream them asynchronously by repeatedl

Re: [Twisted-Python] banana SIZE_LIMIT

2013-03-18 Thread exarkun
On 07:35 pm, gl...@twistedmatrix.com wrote: > >On Mar 18, 2013, at 7:49 AM, Sergey Gerasimov wrote: >>Hi, >> >>Are they some simple ways (keeping existing interface) around >>BananaError >>for long values returned from PB methods? > >Don't return long values. They block the connection. Chunk

[Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-18 Thread Tim Allen
In Guido's keynote at PyCon 2013, apparently he talked about adding an async I/O module to Python 3.4. It looks like his slides can be viewed here: https://www.dropbox.com/s/xknbe58zcvjhzhv/PyCon2013.pptx ...while this is the PEP he's talking about: http://www.python.org/dev/peps/pep-315

Re: [Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-18 Thread Gelin Yan
On Tue, Mar 19, 2013 at 11:00 AM, Tim Allen wrote: > In Guido's keynote at PyCon 2013, apparently he talked about adding an > async I/O module to Python 3.4. It looks like his slides can be viewed > here: > > https://www.dropbox.com/s/xknbe58zcvjhzhv/PyCon2013.pptx > > ...while this is the PE

Re: [Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-18 Thread Stephen Thorne
Not relavent to your questions, but there's a mailing list for discussing the specifics of PEP 3156, which is worth subscribing to if you want to provide specific feedback on the API. https://groups.google.com/forum/?fromgroups#!forum/python-tulip On Tue, Mar 19, 2013 at 3:00 AM, Tim Allen wro