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 eric.smith
Recipients Julian, eric.smith
Date 2011-07-17.22:44:38
SpamBayes Score 1.262075e-07
Marked as misclassified No
Message-id <1310942678.95.0.424167102663.issue12579@psf.upfronthosting.co.za>
In-reply-to
Content
I think the issue is that it should be an error in any string used for format_map() to have a positional argument. So the right thing to do is detect this case in get_field_object (index != -1 and args is NULL). So I think a new test near line 515 really is the right thing to do. With a good comment explaining what's going on.

I'm pretty sure the only case where args is NULL is when used with format_map(), but that needs to be verified.
History
Date User Action Args
2011-07-17 22:44:38eric.smithsetrecipients: + eric.smith, Julian
2011-07-17 22:44:38eric.smithsetmessageid: <1310942678.95.0.424167102663.issue12579@psf.upfronthosting.co.za>
2011-07-17 22:44:38eric.smithlinkissue12579 messages
2011-07-17 22:44:38eric.smithcreate