Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67312
| References | (2 earlier) <CACT3xuUGtsER0B3xwAB2CqQ5Zb=v72w8+DQkaYz681xeSeJ2CQ@mail.gmail.com> <lekj1t$v7n$1@ger.gmane.org> <CACT3xuXWBQC2s2XxE=Cav+RK78voPjbLA0cWSxL50ekktJZ2cg@mail.gmail.com> <CACT3xuXu9m8JY6XVdoJwu+cVKkyYwuBs4iUTF_hVoVks-BQt2A@mail.gmail.com> <lesgo6$m9e$1@ger.gmane.org> |
|---|---|
| Date | 2014-03-01 17:42 +0530 |
| Subject | Re: Python : parsing the command line options using optparse |
| From | Ganesh Pal <ganesh1pal@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7510.1393675926.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
> > handler = object_type_dictionary[options.object_type] # look up the > function > handler() # call it > > The last two lines could also be merged into one > > object_type_dictionary[options.object_type]() > > but the first version may be clearer. > > Thanks for your valuable inputs all worked :)
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python : parsing the command line options using optparse Ganesh Pal <ganesh1pal@gmail.com> - 2014-03-01 17:42 +0530
csiph-web