refactor Enum code generation
Summary: Changed the way how enums generated in thrift-py3: 1. Use C++ map to store name to unique Enum Python instances cache 2. Dynamically find instances from cache (or create one and add to cache) instead of populating all instances at module load time 3. use `__getattr__` and `__getitem__` instead of code-gen all the getters Reviewed By: yfeldblum Differential Revision: D22499183 fbshipit-source-id: b2af8d94024c3591c3d7faaa15cbd026a134cc78
Showing
Please register or sign in to comment