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 terry.reedy
Recipients eric.smith, ncoghlan, terry.reedy
Date 2011-12-16.23:47:31
SpamBayes Score 0.039909
Marked as misclassified No
Message-id <1324079252.11.0.43136263125.issue13579@psf.upfronthosting.co.za>
In-reply-to
Content
At line 237 of string.py:
    def convert_field(self, value, conversion):
        # do any conversion on the resulting object
        if conversion == 'r':
            return repr(value)
        elif conversion == 's':
            return str(value)
        elif conversion is None:
            return value
add
        elif conversion == 'a':
            return ascii(value)

The alternatives should be ordered by decreasing frequency. I suspect that should be None, 's', 'r', 'a'.
History
Date User Action Args
2011-12-16 23:47:32terry.reedysetrecipients: + terry.reedy, ncoghlan, eric.smith
2011-12-16 23:47:32terry.reedysetmessageid: <1324079252.11.0.43136263125.issue13579@psf.upfronthosting.co.za>
2011-12-16 23:47:31terry.reedylinkissue13579 messages
2011-12-16 23:47:31terry.reedycreate