New submission from Thomas Heller: The documentation states that 'from module import *' imports all symbols that are listed in the module's __all__ list. In Python 3, unlike Python 2, only symbols that do NOT start with an underscore are actually imported.
The following code works in Python 2.7, but raises a NameError in Python 3.5: python -c "from ctypes.wintypes import *; print(_ULARGE_INTEGER)" ---------- components: Interpreter Core messages: 283721 nosy: theller priority: normal severity: normal status: open title: 'from module import *' and __all__ type: behavior versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29031> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com