<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
    @cmdline<br>
    def main(archer=str, boulder=float, magic=42):<br>
<br>
which would wrap a parser around the function<br>
and otherwise work like your example. This can<br>
easily work down to Python2.3.<br>
<br>
cheers,<br>
<font color="#888888">holger<br>
</font></blockquote></div><br>That is a really clever idea, it took me a while just to understand how it&#39;d work. If it weren&#39;t so hacky-lookin I would indeed consider it. I mean, any pythonista would look and say &quot;dude, you&#39;ve got a bug, that doesn&#39;t make sense&quot;. Either way, I&#39;m gonna add pyopt to PyPI<br clear="all">
<br>-- <br>Yuv<br><a href="http://code.google.com/p/pyopt/">http://code.google.com/p/pyopt/</a><br>
</div>