Conversation
Change-Id: Ibc2bd88a636f3b4abf82a7c2722fc1e354dab848 Tested: on Linux.
Change-Id: I6ee09cf1e86a41b73bb3aa79b68871afb1a4e34f
Change-Id: I9787ab88e5bd4846d92995e2bb05d0c2121113ca Tested: on Linux.
Change-Id: I458249d95e6d65ac039e84d947d2fdf4fd1c3809 Tested: on Linux.
Change-Id: Ie62096f7337a476bee7a6d46d652e594fb3124d2 Tested: on Linux. Bug: 18201051
Change-Id: Ie187065698dfb6ba9d989e9d2c48bdd7cb870e89
|
Thanks! Will have a look later. |
|
Interesting. I'd like to see much more testing on this. Have you looked at the read tests in the C++ version? Fuzz-testing would be appropriate here. Keep it up! |
|
Sure. I'll be able to do that only after new year though. On Fri, 12 Dec 2014 15:29 Robert notifications@github.com wrote:
|
8b2e2eb to
f64142e
Compare
There was a problem hiding this comment.
Just a small thing, we follow the Google C++ style guide
http://google-styleguide.googlecode.com/svn/trunk/cppguide.html
To adhere to this, you'll need to line up the arguments followed by the function definition to the opening parenthesis.
BTW: I tried pasting a formatted version in here but failed :(
There was a problem hiding this comment.
extern bool GeneratePython(const Parser &parser,
const std::string &path,
const std::string &file_name,
const GeneratorOptions &opts);
python/flatbuffers/reader.py
Outdated
There was a problem hiding this comment.
Why use a tuple rather than declare the members of this class via the init() method? Seems a little bit odd to me at the moment.
I have similar reservations about Struct and Table.
There was a problem hiding this comment.
Immutability and speed of property access - same trick is being used in collections.namedtuple.
You can find more details about that here: of http://shaxbee.github.io/python-binary-part2-struct-unpack/
|
Please compare with the Python 2/3 port I pushed today: #112. Maybe we can combine these? |
src/idl_gen_python.cpp
Outdated
There was a problem hiding this comment.
Please limit lines to 80 characters
|
Fuzz testing, fixed formatting, added more docstrings. I'll work on builder codegen now. |
|
Hello, go ahead and close it, I'll work on struct based read/write and some other perf optimizations once #112 is merged. |
Python code generator for flatbuffers reading.