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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17383>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to