Arg decoding with a template?

Skip Montanaro skip at pobox.com
Wed Aug 1 11:25:06 EDT 2001


    Hans-J> I would have written a parser for this under Unix, but I prefer
    Hans-J> to have a consistent interface, which means basically getopt()
    Hans-J> (though I did write my own C getopt()).

Ok, I'll bite.  Why write your own C getopt?  There are several floating
around, and there's the standard module delivered with Python.  Option
parsing hardly seems like performance-cricial code.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list