New submission from ChrisRands :
Issue arose from this SO post: https://stackoverflow.com/questions/48746351/documentation-is-contradicting-...
The tkinter documentation suggests:
from tkinter import *
https://docs.python.org/3/library/tkinter.html
But this obviously contradicts PEP8:
"Wildcard imports (from <module> import *) should be avoided"
https://www.python.org/dev/peps/pep-0008/#imports
Is tkinter a valid exception or is this a documentation bug?
The commit of this line to the documentation is >10 years old (at least Python 2.4 I think): https://github.com/python/cpython/commit/116aa62bf54a39697e25f21d6cf6799f7fa...
----------
assignee: docs@python
components: Documentation
messages: 312045
nosy: ChrisRands, docs@python
priority: normal
severity: normal
status: open
title: tkinter documentation suggests "from tkinter import *", contradicting PEP8
_______________________________________
Python tracker
https://bugs.python.org/issue32830
_______________________________________