[Twisted-Python] AmpList: length limitations

Vlad Shevchenko vlad.shevchenko at gmail.com
Wed Mar 31 11:54:49 EDT 2010

Hi all!

    Stuck with AmpList again :( Im trying to send/retrieve data much larger
then 64K and choose AmpList cause it "Convert a list of dictionaries into a
list of AMP boxes".

My original data looks like a long list of dicts [ {1}, {2}, ..., {x} ].
I convert it to [
    {'data': 'json encoded 1,2 dicts'},
    {'data': 'json encoded 3,4 dicts}',
] hoping EACH element in converted list will be converted to AmpBox and
retriever on wire.

However, still got TooLong exception on AmpBox.serialize(). AmpBox trying to
serialize all my converted list but not each dict in it separately.

Does this behavior ok, or this is a bug?

WBR, Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100331/19c8fb4a/attachment.htm 

More information about the Twisted-Python mailing list