Kevin Norris added the comment: >It could be misleading saying “the name of the current package”, because the >import could be relative to the a higher level parent package if more than one >dot is specified.
While this is correct, Python still uses __package__ to determine what to import in that case. I simply replaced "__package__" with "the name of the current package" to make it easier to read, much as the original text replaces "__name__" with "the name of the current module." >Then point out that relative imports won’t work with ``python file.py`` or >interactive mode, but don’t mention “-m” (or the other ways to run scripts and >modules). SGTM if you can find a reasonable way of phrasing that. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26160> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com