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

Serhiy Storchaka report at bugs.python.org
Sat Jul 26 17:47:29 CEST 2014


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>
<http://bugs.python.org/issue22081>
_______________________________________


More information about the Python-bugs-list mailing list