Terry J. Reedy added the comment:

I like this. It would make naming widgets more useful. I checked one Idle 
dialog and nothing is named. I suspect this is typical.

The proposed change would break a doctest that follows the fix in the doctest 
manual.
---
>>> C()   # the default repr() for instances embeds an address
<__main__.C instance at 0x00AC18F0>

The ELLIPSIS directive gives a nice approach for the last example:
>>>

>>> C() #doctest: +ELLIPSIS
<__main__.C instance at 0x...>
---
I think the recommendation should better be

<__main__.C instance ...>

except that 'instance' is now 'object' -- and *that* change must have broken 
much more that this one would.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20636>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to