[docs] [issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules
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>
More information about the docs