Tony McDonald wrote: [snippage] > > template_str = eval("self.RENDER.%s.read_raw()" % tagclass) [bobbit] This will certainly work, but here's a non-eval solution (I really dislike exec-ing and eval-ing): template_str = getattr(self.RENDER, tagclass).read_raw()