/[Apache-SVN]
ViewVC logotype

Revision 734536


Jump to revision: Previous Next
Author: dreiss
Date: Wed Jan 14 22:34:15 2009 UTC (15 years, 3 months ago)
Changed paths: 2
Log Message:
THRIFT-242. python: Used named arguments in __init__ instead of a dict

This is a wire-compatible but non-source-compatible change.
When initializing structures, you must use

Foo(bar=1, baz="qux")
Foo(**{"bar": 1, "baz": "qux"})

instead of

Foo({"bar": 1, "baz": "qux"})


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc modified , text changed
Directoryincubator/thrift/trunk/test/py/SerializationTest.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26