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 chris.jerdonek
Recipients Arfrever, barry, benjamin.peterson, bethard, chris.jerdonek, georg.brandl
Date 2012-09-11.16:40:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Along the lines of my previous comment, I notice that the following str type check was removed in the patch for issue 12776:

-                        if isinstance(action.default, str):
-                            default = self._get_value(action, default)
-                        setattr(namespace, action.dest, default)

But it was not preserved when the call to _get_value() was added back elsewhere:

+                    if (action.default is not None and
+                        hasattr(namespace, action.dest) and
+                        action.default is getattr(namespace, action.dest)):
+                        setattr(namespace, action.dest,
+                                self._get_value(action, action.default))
Date User Action Args
2012-09-11 16:40:31chris.jerdoneksetrecipients: + chris.jerdonek, barry, georg.brandl, bethard, benjamin.peterson, Arfrever
2012-09-11 16:40:31chris.jerdoneksetmessageid: <>
2012-09-11 16:40:28chris.jerdoneklinkissue15906 messages
2012-09-11 16:40:28chris.jerdonekcreate