Merge branch 'CLOWNFISH-66-py-glue3' Gen Py glue for methods and constructors.
* Autogenerate CPython glue code for methods and constructors. * Handle both positional and labeled args. * Deal with refcounting of args and return values. * Trap Clownfish exceptions and rethrow as Python exceptions. * Unit test Py binding of Hash. This closes #60. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/89fc0464 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/89fc0464 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/89fc0464 Branch: refs/heads/master Commit: 89fc046405bf5ae9613219ef8af10cea6082a97c Parents: 43de47b 9d058f4 Author: Marvin Humphrey <[email protected]> Authored: Mon Feb 29 18:59:47 2016 -0800 Committer: Marvin Humphrey <[email protected]> Committed: Mon Feb 29 18:59:47 2016 -0800 ---------------------------------------------------------------------- compiler/src/CFCPyClass.c | 45 ++- compiler/src/CFCPyMethod.c | 443 +++++++++++++++++++++++++++++ compiler/src/CFCPyMethod.h | 15 + runtime/python/cfext/CFBind.c | 7 +- runtime/python/test/test_clownfish.py | 2 + runtime/python/test/test_err.py | 31 ++ runtime/python/test/test_hash.py | 102 +++++++ 7 files changed, 640 insertions(+), 5 deletions(-) ----------------------------------------------------------------------
