mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
b40f5c227f
Currently, the generated exception classes are not hashable under Python 3 because of the generated `__eq__` method. Exception objects are generally expected to be hashable by the Python standard library. Post-construction mutation of an exception object seems like a very unlikely case, so enable hashing for all exceptions by making them immutable by default. This also adds a way to opt-out of immutability by setting the `python.immutable` annotation to `"false"`. |
||
---|---|---|
.. | ||
explicit_module | ||
CMakeLists.txt | ||
FastbinaryTest.py | ||
generate.cmake | ||
Makefile.am | ||
RunClientServer.py | ||
SerializationTest.py | ||
setup.cfg | ||
TestClient.py | ||
TestEof.py | ||
TestFrozen.py | ||
TestRenderedDoubleConstants.py | ||
TestServer.py | ||
TestSocket.py | ||
TestSyntax.py | ||
TSimpleJSONProtocolTest.py | ||
util.py |