mirror of
https://github.com/google/flatbuffers.git
synced 2025-04-08 09:12:14 +08:00
* Enable --gen-onefile in Python Made it possible to generate all python code in one file. Modified py_test.py so that it can switch between the multi-file code and the one-file code. Updated PythonTest.sh and py_test.py so that the multi-file code and the one-file code can be tested based on the same test code. * Sync with google/flatbuffers * Add --gen-onefile to generate_code.py
13 lines
297 B
Python
13 lines
297 B
Python
# automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
# namespace: Example
|
|
|
|
# Composite components of Monster color.
|
|
class Color(object):
|
|
Red = 1
|
|
# \brief color Green
|
|
# Green is bit_flag with value (1u << 1)
|
|
Green = 2
|
|
# \brief color Blue (1u << 3)
|
|
Blue = 8
|