Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67312 > unrolled thread

Re: Python : parsing the command line options using optparse

Started byGanesh Pal <ganesh1pal@gmail.com>
First post2014-03-01 17:42 +0530
Last post2014-03-01 17:42 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python : parsing the command line options using optparse Ganesh Pal <ganesh1pal@gmail.com> - 2014-03-01 17:42 +0530

#67312 — Re: Python : parsing the command line options using optparse

FromGanesh Pal <ganesh1pal@gmail.com>
Date2014-03-01 17:42 +0530
SubjectRe: Python : parsing the command line options using optparse
Message-ID<mailman.7510.1393675926.18130.python-list@python.org>

[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 :)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web