Message283721
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)" |
|
Date |
User |
Action |
Args |
2016-12-21 08:13:10 | theller | set | recipients:
+ theller |
2016-12-21 08:13:10 | theller | set | messageid: <1482307990.24.0.476248226278.issue29031@psf.upfronthosting.co.za> |
2016-12-21 08:13:10 | theller | link | issue29031 messages |
2016-12-21 08:13:09 | theller | create | |
|