Update module names in references in the FAQ.

This commit is contained in:
Georg Brandl 2009-10-13 16:55:12 +00:00
parent d741315f37
commit d404fa6e1c
2 changed files with 11 additions and 15 deletions

View file

@ -364,7 +364,7 @@ What are the "best practices" for using import in a module?
In general, don't use ``from modulename import *``. Doing so clutters the
importer's namespace. Some people avoid this idiom even with the few modules
that were designed to be imported in this manner. Modules designed in this
manner include :mod:`Tkinter`, and :mod:`threading`.
manner include :mod:`tkinter`, and :mod:`threading`.
Import modules at the top of a file. Doing so makes it clear what other modules
your code requires and avoids questions of whether the module name is in scope.