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
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
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
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
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
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
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
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