Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
@summary: Raised when too much data is pumped into a queue.

src/p/y/PyRQ-0.4.1/PyRQ/Core/Marshal/DefaultMarshaller.py   PyRQ(Download)
import sys
import traceback
from PyRQ.Core.Marshal.OversizedDataError import OversizedDataError
 
class DefaultMarshaller(iMarshaller):
    def _package(data, maxsize=None):
        d = pickle.dumps(data)
        if (maxsize!=None) and (len(d)>maxsize):
            raise OversizedDataError(len(d), maxsize)
        basesize =  len(d)