<div dir="ltr">On 23 May 2013 17:00, Walter Dörwald <span dir="ltr"><<a href="mailto:walter@livinglogic.de" target="_blank">walter@livinglogic.de</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">Should it be possible to register multiple types for the generic function with one register() call, i.e. should:</span><br>
</div>
<br>
   @fun.register(int, float)<br>
   def _(arg, verbose=False):<br>
      ...<br>
<br>
be allowed as a synonym for<br>
<br>
   @fun.register(int)<br>
   @fun.register(float)<br>
   def _(arg, verbose=False):<br></blockquote><div><br></div><div style>No, because people will misread register(int, float) as meaning first argument int, second float. The double decorator is explicit as to what is going on, and isn't too hard to read or write.</div>
<div style><br></div><div style>Paul </div></div><br></div></div>