diff options
author | Petr Viktorin <encukou@gmail.com> | 2019-09-20 09:16:34 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-04 16:46:47 +1000 |
commit | 25a9bccdee2fe830046c1c1a0220ca7706597202 (patch) | |
tree | 69e2b808f5f523964dd4d71257dc4e9e60f309c4 /py/objmap.c | |
parent | 26e90a051415629796efbec59f1d653b46e43aea (diff) |
py/compile: Disallow 'import *' outside module level.
This check follows CPython's behaviour, because 'import *' always populates
the globals with the imported names, not locals.
Since it's safe to do this (doesn't lead to a crash or undefined behaviour)
the check is only enabled for MICROPY_CPYTHON_COMPAT.
Fixes issue #5121.
Diffstat (limited to 'py/objmap.c')
0 files changed, 0 insertions, 0 deletions