[issue9328] str.__format__.__doc__ backport glitch

New submission from Terry J. Reedy <tjreedy@udel.edu>: On Python list, 'jmfauth' reports
sys.version 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] ''.format.__doc__ S.format(*args, **kwargs) -> unicode
I do not have 2.7 loaded to verify this, but assuming this is accurate, 'unicode' should be 'string'. I presume this is from mistaken conversion of 3.1 'string' to 2.7 'unicode' when backporting the new string format system. ---------- assignee: docs@python components: Documentation keywords: easy messages: 111130 nosy: docs@python, tjreedy priority: normal severity: normal stage: needs patch status: open title: str.__format__.__doc__ backport glitch versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9328> _______________________________________

Eric Smith <eric@trueblade.com> added the comment: Yes, that is what it says; and yes, it should be "string". Although why all of the methods say "string" and not "str" isn't clear to me. Probably historical. The doc string for str.__format__ contains the same error. ---------- nosy: +eric.smith _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9328> _______________________________________

On Wed, Jul 21, 2010 at 8:34 PM, Eric Smith <report@bugs.python.org> wrote:
Although why all of the methods say "string" and not "str" isn't clear to me. Probably historical.
Indeed; we used "string" in the docs as an informal way to say what eventually became known as basestring. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "A storm broke loose in my mind." --Albert Einstein

Eric Smith <eric@trueblade.com> added the comment: And now that I look at it, the subject contains "__format__" but the original message says "format". Both cases are already covered! ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9328> _______________________________________

Changes by Fred L. Drake, Jr. <fdrake@acm.org>: ---------- nosy: -fdrake _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9328> _______________________________________

Georg Brandl <georg@python.org> added the comment: Fixed in r83354. ---------- nosy: +georg.brandl resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9328> _______________________________________
participants (5)
-
Eric Smith
-
Fred Drake
-
Fred L. Drake, Jr.
-
Georg Brandl
-
Terry J. Reedy