request for a constructor feature in module optparse

Daniel Ortmann dortmann at lsil.com
Mon Oct 13 11:38:00 EDT 2003


Options are decided statically at program-creation time, yet
parser.add_option() needs to be called at *runtime* to build the
options.

This would be corrected if OptionParser() processed an optional data
structure of nested options.  The current behavior would still be
available.


(P.S. Would it make sense to have a module-level "__opt__" entry similar
to "__doc__"?)

-- 
Daniel Ortmann, LSI Logic, 3425 40th Av NW, Suite 200, Rochester MN 55901
work: Daniel.Ortmann at lsil.com / 507.535.3861 / 63861 int / 8012.3861 gdds
home: ortmann at isl.net / 507.288.7732, 2414 30Av NW #D, Rochester MN 55901




More information about the Python-list mailing list