> >  >             self._Draw = eval(self.__draw_ + BackEnd)
> >
> > I'd probably do it without "eval", though...
>
> Anything specifically wrong with eval in this context? How would you do
> it - using a dict (as above)?

the preferred way to do this without an eval is something like this:

self._Draw = getattr(self,"__draw_"+BackEnd)
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to