We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define the following files
namespace test_nested.nested; file_identifier "TESB"; table B { data1:[ubyte]; } root_type B;
include "B.fbs"; namespace test_nested; file_identifier "TESA"; table A { data2:[ubyte] (force_align: 64, nested_flatbuffer:"nested.B"); } root_type A;
and generate the python code using flatc --python A.fbs
flatc --python A.fbs
try including the generated file in a python file errors out when executing
from test_nested import A as a_fbs
Traceback (most recent call last): from test_nested.nested.B import nested.B ^ SyntaxError: invalid syntax
The solution is to change the line in
flatbuffers/src/idl_gen_python.cpp
Line 1115 in 1c51462
const std::string unqualified_name = namer_.Type(struct_def);
in order to get the correct naming for import
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Define the following files
and generate the python code using
flatc --python A.fbs
try including the generated file in a python file errors out when executing
The solution is to change the line in
flatbuffers/src/idl_gen_python.cpp
Line 1115 in 1c51462
in order to get the correct naming for import
The text was updated successfully, but these errors were encountered: