summaryrefslogtreecommitdiff
path: root/include/gras/block.i
diff options
context:
space:
mode:
authorJosh Blum2013-07-08 01:01:28 -0700
committerJosh Blum2013-07-08 01:01:28 -0700
commit8c3ccbe2445a86678d87d03f6626881a2fddc7d5 (patch)
tree8c7fecf502a3c1c62d6626948a2c5212bd23b1c1 /include/gras/block.i
parent0265b9f0371e08ecfbfb9cdece35585541152adb (diff)
downloadsandhi-8c3ccbe2445a86678d87d03f6626881a2fddc7d5.tar.gz
sandhi-8c3ccbe2445a86678d87d03f6626881a2fddc7d5.tar.bz2
sandhi-8c3ccbe2445a86678d87d03f6626881a2fddc7d5.zip
gras: python tweaks from last commits
Diffstat (limited to 'include/gras/block.i')
-rw-r--r--include/gras/block.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gras/block.i b/include/gras/block.i
index 0fed36d..8daa55a 100644
--- a/include/gras/block.i
+++ b/include/gras/block.i
@@ -28,6 +28,9 @@ from PMC import *
{
%insert("python")
%{
+ def __getattr__(self, name):
+ return lambda *args: self.x(name, *args)
+
def post_output_msg(self, which_output, value):
if not isinstance(value, PMCC): value = PMC_M(value)
self._post_output_msg(which_output, value)