From 8c3ccbe2445a86678d87d03f6626881a2fddc7d5 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 8 Jul 2013 01:01:28 -0700 Subject: gras: python tweaks from last commits --- include/gras/block.i | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/gras/block.i') 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) -- cgit