Nice!<br><br><div class="gmail_quote">On Fri, Jun 15, 2012 at 2:28 AM, Brian Palmer <span dir="ltr">&lt;<a href="mailto:bpalmer@gmail.com" target="_blank">bpalmer@gmail.com</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><br>Your initial solution seems like it&#39;d work:<br>class Wrap(object):<br>  def __init__(self, ctx):<br>    self.ctx = ctx<br><br>  def __getattr__(self, name):<br>    def myf(*args, **kwargs):<br>

      getattr(self.ctx, name)(*args, **kwargs)<br>      return self<br>    return myf<br><br>There are benefits to being less dynamic, but this might be good enough.<br></div></div>
<br>_______________________________________________<br>
Baypiggies mailing list<br>
<a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
To change your subscription options or unsubscribe:<br>
<a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br></blockquote></div><br>