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: asp2insp Differential Revision: D23182622 fbshipit-source-id: 75baef997ee2d604b4ef7606f282cfc3306208ac
Showing
Please register or sign in to comment