[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

Guido van Rossum report at bugs.python.org
Sat Jul 26 18:42:26 CEST 2014


Guido van Rossum added the comment:

OK, I'm convinced. Sorry Victor.

On Saturday, July 26, 2014, Serhiy Storchaka <report at bugs.python.org> wrote:

>
> Serhiy Storchaka added the comment:
>
> See for example test_generators, test_genexps, test_xml_etree or
> ctypes.test.test_objects.
>
>     >>> dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS
>     {'a': <generator object <genexpr> at ...>}
>
>     >>> repr(element)   # doctest: +ELLIPSIS
>     "<Element 't\\xe4g' at 0x...>"
>
> But unit tests can be broken too. When I enhanced reprs this week
> (issue22031,
> issue22032), I needed to correct failed tests. Due to this facts I applied
> patches only to 3.5.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org <javascript:;>>
> <http://bugs.python.org/issue22081>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22081>
_______________________________________


More information about the Python-bugs-list mailing list