Arg decoding with a template?

Steve Holden sholden at holdenweb.com
Tue Jul 31 11:47:35 EDT 2001


[Posted & mailed]

"Dale Strickland-Clark" <dale at riverhall.NOSPAMco.uk> wrote in message
news:ljidmtouqj6som2t9ecagbkj95c53kjaeh at 4ax.com...
> Is there a class that simplifies high-level argument decoding under the
control of a template?
>
> Such a class would take a string as a template and the arg list and return
another list populated
> with keys, values and switches taken from the args.
>
> I've spent the last hour going through the global module list. If it's
there, its got a daft name!
]
So the getopts module wouldn't be any use to you, then? ;-)

I think it has that stupid name because the Unix C library with similar
functionality uses the exact same stupid name.

regards
 Steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list