Better python generated code naming (#6336)
authorRichard A Hofer <rofer@google.com>
Thu, 28 Jan 2021 20:35:37 +0000 (15:35 -0500)
committerGitHub <noreply@github.com>
Thu, 28 Jan 2021 20:35:37 +0000 (12:35 -0800)
commit13d9e35858fe8c96f7244bf0e4b66af2b24b59f3
tree55075d6b8bd9f20d89ce3eaeb9a7a84814b33f60
parent6effe431bbdef0580b6552a3246f7ec6b3751a2c
Better python generated code naming (#6336)

* Remove a lot of redundancy from the Python generated code.

Update tutorial to reflect new Python generated code.

* Add aliases for newly deprecated Python generated methods.

This should help with backwards compatibility.

* Fix incorrect names in deprecated comments.
17 files changed:
docs/source/Tutorial.md
src/idl_gen_python.cpp
tests/MyGame/Example/ArrayTable.py
tests/MyGame/Example/Monster.py
tests/MyGame/Example/Referrable.py
tests/MyGame/Example/Stat.py
tests/MyGame/Example/TestSimpleTableWithEnum.py
tests/MyGame/Example/TypeAliases.py
tests/MyGame/Example2/Monster.py
tests/MyGame/InParentNamespace.py
tests/MyGame/MonsterExtra.py
tests/PythonTest.sh
tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.py
tests/namespace_test/NamespaceA/SecondTableInA.py
tests/namespace_test/NamespaceA/TableInFirstNS.py
tests/namespace_test/NamespaceC/TableInC.py
tests/py_test.py