[issue32830] tkinter documentation suggests "from tkinter import *", contradicting PEP8

Tom Middleton report at bugs.python.org
Tue Dec 1 15:59:25 EST 2020


Tom Middleton <busfault at gmail.com> added the comment:

While I agree that it shouldn't be imposed on changing previous code, changing the documentation isn't changing the previous code it is encouraging future code. I think that the documentation should have a caveat. I'm seeing a lot of new code using tkinter with glob import which is obviously from the documentation as it suggests doing so. I think that the glob import practice should be overall discouraged. I think adding a disclaimer in the documentation at the reference to `from tkinter import *` would be sufficient. A reference to PEP8 would be good. I'd imagine that most people look up docs and are not as familiar with PEP.
Why can't something like that be added to the documentation?

----------
nosy: +busfault

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32830>
_______________________________________


More information about the Python-bugs-list mailing list