thriftpy icon indicating copy to clipboard operation
thriftpy copied to clipboard

Make copies of default values to TPayload objects

Open mrterry opened this issue 8 years ago • 1 comments

If the same object is used across TPayload objects, mutating that field will affect subsequent TPayload object instances.

closes #261

mrterry avatar Nov 23 '16 00:11 mrterry

@lxyu I've added a test to make it explicit that TPayload.init must support positional args. TException is called several times with only positional args. Elsewhere in the code TProtocolException, TDecodeException, TApplicationException, and TTransportException are called similarly.

mrterry avatar Jan 28 '17 20:01 mrterry