[docs] [issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules

Jeff Knupp report at bugs.python.org
Fri Mar 8 17:45:51 CET 2013


Jeff Knupp added the comment:

Of the "two different things", the first (the scope of imported names) is never covered in the documentation. As a result, the text in question seems to imply an import statement can *only* be in module scope. 

>From the reader's perspective: "If I wanted to import something in a class or function it obviously can't be at the top of the file, so I guess I can't do that." The tutorial doesn't disabuse them of this notion.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17383>
_______________________________________


More information about the docs mailing list