This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ChrisRands
Recipients ChrisRands, docs@python
Date 2018-02-12.12:51:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518439905.14.0.467229070634.issue32830@psf.upfronthosting.co.za>
In-reply-to
Content
Issue arose from this SO post: https://stackoverflow.com/questions/48746351/documentation-is-contradicting-pep8

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/116aa62bf54a39697e25f21d6cf6799f7faa1349#diff-05a258c160de90c51c1948689f788ef7R53
History
Date User Action Args
2018-02-12 12:51:45ChrisRandssetrecipients: + ChrisRands, docs@python
2018-02-12 12:51:45ChrisRandssetmessageid: <1518439905.14.0.467229070634.issue32830@psf.upfronthosting.co.za>
2018-02-12 12:51:45ChrisRandslinkissue32830 messages
2018-02-12 12:51:45ChrisRandscreate