[issue8979] OptParse __getitem__

2010-06-12 Thread Bryan Ward
Bryan Ward added the comment: Thanks for your help and I apologize for the unnecessary ticket. I was unfamiliar with vars() which seems to accomplish what I wanted. -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue8979] OptParse __getitem__

2010-06-11 Thread Bryan Ward
New submission from Bryan Ward : It would be convenient to be able to access the resultant options from optparse using the syntax options['some_option'] instead of options.some_option Or additionally it would be nice to have a way to produce a dictionary of the options. This wou