Files
flatbuffers/tests
Anton Bobukh c696275eaf [Python] Fix various codegen problems (#8292)
* [Python] Fix various codegen problems.

This includes:

-  escaping keywords happens **after** converting the case:
   - currently, `table ClassT` generate `class = Class()` which is invalid Python;
-  imports in `one_file` mode use the filename rather than the type name when resolving module names;
-  use `filename_suffix` instead of the hardcoded `_generated` one;
-  generate empty files if no structs or enums are available. This makes the set of output files more predictable for Bazel.

* [Python] Fix various codegen problems.

This includes:

-  escaping keywords happens **after** converting the case:
   - currently, `table ClassT` generate `class = Class()` which is invalid Python;
-  imports in `one_file` mode use the filename rather than the type name when resolving module names;
-  use `filename_suffix` instead of the hardcoded `_generated` one;
-  generate empty files if no structs or enums are available. This makes the set of output files more predictable for Bazel.
2024-05-01 14:39:47 -07:00
..
2024-03-26 05:18:07 +00:00
2024-03-26 05:18:07 +00:00
2023-05-11 18:14:27 -07:00
2024-03-26 05:18:07 +00:00
2024-03-26 05:18:07 +00:00
2022-10-21 14:30:04 -04:00
2024-03-26 05:18:07 +00:00
2024-03-26 05:18:07 +00:00
2024-03-26 05:18:07 +00:00
2022-08-28 16:54:58 -07:00
2023-05-11 18:14:27 -07:00
2022-08-28 16:54:58 -07:00
2022-08-28 16:54:58 -07:00
2023-05-11 18:14:27 -07:00
2023-09-17 10:21:58 -07:00
2023-09-29 07:40:02 -07:00
2021-12-02 21:29:19 -08:00
2021-12-02 21:29:19 -08:00
2024-03-26 05:18:07 +00:00
2021-11-19 17:01:48 -08:00
2024-03-26 05:18:07 +00:00
2023-05-11 18:14:27 -07:00
2023-05-31 11:52:05 -07:00
2024-03-26 05:18:07 +00:00
2024-03-26 05:18:07 +00:00
2022-09-10 12:36:51 -07:00
2023-05-09 09:16:30 -07:00
2023-11-18 00:19:03 -08:00
2022-08-28 16:54:58 -07:00