> Index: Lib/optparse.py
> ===================================================================
> --- Lib/optparse.py    (revision 68465)
> +++ Lib/optparse.py    (working copy)
> @@ -994,7 +994,7 @@
>          """add_option(Option)
>             add_option(opt_str, ..., kwarg=val, ...)
>          """
> -        if type(args[0]) is types.StringType:
> +        if type(args[0]) in types.StringTypes:
>              option = self.option_class(*args, **kwargs)
>          elif len(args) == 1 and not kwargs:
>              option = args[0]
> 
> Should this be fixed, or wait for 2.7?

It would be a new feature. So if we apply a strict policy, it
can't be added to 2.6.

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to