Message183748
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. |
|
Date |
User |
Action |
Args |
2013-03-08 16:45:51 | jeffknupp | set | recipients:
+ jeffknupp, ezio.melotti, eric.araujo, docs@python, ashwch, Piotr.Kuchta |
2013-03-08 16:45:51 | jeffknupp | set | messageid: <1362761151.06.0.756040186108.issue17383@psf.upfronthosting.co.za> |
2013-03-08 16:45:51 | jeffknupp | link | issue17383 messages |
2013-03-08 16:45:50 | jeffknupp | create | |
|