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 gvanrossum
Recipients eric.araujo, ezio.melotti, gvanrossum, pitrou, vstinner
Date 2011-11-22.16:55:10
SpamBayes Score 1.1155905e-05
Marked as misclassified No
Message-id <CAP7+vJJ_joD+XdgDszV3U+rhueLtALnm_1O8Xt7q18ANHNB9vA@mail.gmail.com>
In-reply-to <1321975672.22.0.0542036079957.issue13224@psf.upfronthosting.co.za>
Content
Are you sure? The way I read the PEP, it just said that str(cls) and
str(func) should *use* qualname. That could mean returning '<function
f.g.h at 0x1234>' or '<class '__main__.C.D>'.

On Tue, Nov 22, 2011 at 7:27 AM, Éric Araujo <report@bugs.python.org> wrote:
>
> Éric Araujo <merwok@netwok.org> added the comment:
>
> PEP 3155 is accepted and makes str(cls) and str(function) as well as repr(cls) and repr(function) return the qualified name, which obsoletes part of this request.  I haven’t checked if it has the same problem with Python methods.  str(module) is not changed by the PEP.
>
> ----------
> title: Change str(class) to return only the class name -> Change str(x) to return only __qualname__ for some types
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue13224>
> _______________________________________
>
History
Date User Action Args
2011-11-22 16:55:10gvanrossumsetrecipients: + gvanrossum, pitrou, vstinner, ezio.melotti, eric.araujo
2011-11-22 16:55:10gvanrossumlinkissue13224 messages
2011-11-22 16:55:10gvanrossumcreate