[issue13224] Change str(x) to return only __qualname__ for some types

Éric Araujo report at bugs.python.org
Tue Nov 22 16:27:52 CET 2011


Éric Araujo <merwok at 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 at bugs.python.org>
<http://bugs.python.org/issue13224>
_______________________________________


More information about the Python-bugs-list mailing list