[issue868845] Need unit tests for <...> reprs

Alexander Belopolsky report at bugs.python.org
Mon Mar 17 18:19:27 CET 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I think the attached patch captures the most of what can currently be 
said  about <...> reprs.

I think the biggest offender in terms of inconsistency in the 2.x series 
is the file object with the repr which does not even start with the name 
of the type.

For 3.0, I think it is feasible to standardize on the <{type} object 
['{name}'] ... at 0x{addr}> pattern.

----------
keywords: +patch
Added file: http://bugs.python.org/file9691/doc-repr.diff

____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue868845>
____________________________________


More information about the Python-bugs-list mailing list