summaryrefslogtreecommitdiff
path: root/include/gras/block.i
diff options
context:
space:
mode:
authorJosh Blum2013-07-05 19:40:26 -0700
committerJosh Blum2013-07-05 19:40:26 -0700
commit66db95c9d57cd0c2a7a9fabe06f7d7d5b3fb8a45 (patch)
tree3a3fcbac80e13971e20ca4c93de51e1c693f4af4 /include/gras/block.i
parentfc80d2c0acec4f668b58a05bd5a3a06b0a2a2280 (diff)
downloadsandhi-66db95c9d57cd0c2a7a9fabe06f7d7d5b3fb8a45.tar.gz
sandhi-66db95c9d57cd0c2a7a9fabe06f7d7d5b3fb8a45.tar.bz2
sandhi-66db95c9d57cd0c2a7a9fabe06f7d7d5b3fb8a45.zip
gras: pythonic work on callable interface
Diffstat (limited to 'include/gras/block.i')
-rw-r--r--include/gras/block.i10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/gras/block.i b/include/gras/block.i
index 2de2c98..2ba9779 100644
--- a/include/gras/block.i
+++ b/include/gras/block.i
@@ -21,19 +21,10 @@
////////////////////////////////////////////////////////////////////////
// Create pythonic gateway to get and set
////////////////////////////////////////////////////////////////////////
-%pythoncode %{
-from PMC import *
-%}
%extend gras::Block
{
%insert("python")
%{
- def set(self, key, value):
- self._set_property(key, PMC_M(value))
-
- def get(self, key):
- return self._get_property(key)()
-
def post_output_msg(self, which_output, value):
if not isinstance(value, PMCC): value = PMC_M(value)
self._post_output_msg(which_output, value)
@@ -41,7 +32,6 @@ from PMC import *
def post_input_msg(self, which_input, value):
if not isinstance(value, PMCC): value = PMC_M(value)
self._post_input_msg(which_input, value)
-
%}
}