[issue20636] Better repr for tkinter widgets
Ezio Melotti
report at bugs.python.org
Sun Feb 23 15:46:33 CET 2014
Ezio Melotti added the comment:
> <tkinter.Button object .3070343372.3066782348>
Not knowing the internal of tkinter, this seems somewhat confusing.
Is that an "anonymous name/id"?
> <tkinter.Button object .panel.b1>
This already looks more useful. How is that determined? Why the "first" object is missing (i.e. .panel seems to be an attribute of a missing object)?
Regarding the patch, are you sure that .__class__.__module__ is always available? I seem to remember that it might be missing in some cases, e.g. modules written in C (but I might be confusing it with something else like __file__).
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20636>
_______________________________________
More information about the Python-bugs-list
mailing list