On Wed, Sep 30, 2009 at 09:21, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote: > Brett Cannon <brett <at> python.org> writes: > >> Obviously if one of the getopt supporters has a better way of doing >> this then please speak up. > > I'm not a getopt supporter per se - I'm +1 for argparse - but Opster provides > some nice syntax sugar on top of getopt, and can be seen here: > > http://blogg.ingspree.net/blog/2009/09/14/opster/ > > I've contacted Steven about a similar approach for argparse, and we're waiting > for Yuvgoog's work on argparse(func) to be done to see if there's a feasible > similar approach. I am reluctant to jump on these argument parsing decorators until they have existed outside the standard library for a while and have settled down as I suspect some people want to use annotations to do type conversion/checking, others don't, etc. -Brett
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4