<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, May 30, 2016 at 4:48 PM Pavol Lisy <<a href="mailto:pavol.lisy@gmail.com">pavol.lisy@gmail.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I prefer to enable multiple matches.<br></blockquote><div><br></div><div>Ok. Preventing rebinding was inspired by Erlang, but I can see why you might want to match multiple cases. <span style="line-height:1.5">I'll move that feature to a FreezeBinding class; I figure it'll be helpful in multithreading.</span></div><div><span style="line-height:1.5"> </span><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But if you really like to forbid it then you would probably like to<br>
change next line -><br>
raise BindError(fmt.format(name=name, value=value))<br>
to line -><br>
raise BindError(fmt.format(name=name, value=getattr(self, name)))<br></blockquote><div><br></div><div>Fixed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Anyway I really like your proof of concept! :)<br></blockquote><div><br></div><div>Thanks for reading.</div></div></div>