This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients Arfrever, barry, benjamin.peterson, bethard, chris.jerdonek, georg.brandl, r.david.murray
Date 2012-09-11.18:45:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On Sep 11, 2012, at 04:15 PM, Chris Jerdonek wrote:

>I haven't thought about this very long, but what would happen if the "type"
>conversion is only called on arguments and default arguments that are
>strings, and otherwise left alone?

I thought about that, and actually, my first take on a fix was almost exactly
to restore the isinstance check for str-ness.  When I thought about it longer,
it occurred to me that the type conversion for default only made sense when
action was 'store'.  Still, either approach would solve the problem.

>It seems like that would at least address the use case in the first comment,
>and maybe the type=open one as well.
>Either way, it seems like you still might need to track whether an argument
>has been converted (e.g. if type converts string to another string type).

That would be more complicated, so we'd really have to decide whether to back
port such changes, and whether we can sneak that into 3.3 given how late in
the process we are.

I'd be in favor either of my patch, or restoring the isinstance check
(probably in that order).
Date User Action Args
2012-09-11 18:45:43barrysetrecipients: + barry, georg.brandl, bethard, benjamin.peterson, Arfrever, r.david.murray, chris.jerdonek
2012-09-11 18:45:42barrylinkissue15906 messages
2012-09-11 18:45:42barrycreate