?
=?iso-8859-1?q?S=E9bastien_Boisg=E9rault?=
Any idea why the 'options' object in
# optparse stuff
(options, args) = parser.parse_args()
is not/couldn't be a real dict ? Or why at least it
does not support dict's usual methods ?
The next move after a parse_args is often to call
a method 'do_stuff' with the args and options and
I'd like to use a call such as:
do_stuff(args, **options)
This function signature is handy if you also need
sometimes to call 'do_stuff' from the Python interpreter.
Cheers,
SB
# optparse stuff
(options, args) = parser.parse_args()
is not/couldn't be a real dict ? Or why at least it
does not support dict's usual methods ?
The next move after a parse_args is often to call
a method 'do_stuff' with the args and options and
I'd like to use a call such as:
do_stuff(args, **options)
This function signature is handy if you also need
sometimes to call 'do_stuff' from the Python interpreter.
Cheers,
SB