<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'd work. If it weren't so hacky-lookin I would indeed consider it. I mean, any pythonista would look and say "dude, you've got a bug, that doesn't make sense". Either way, I'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>