Fix side effect issues with predefined names and lazy contexts.

This commit is contained in:
Dave Halter
2016-11-26 10:16:26 +01:00
parent fe54285311
commit 2161be2dcb
3 changed files with 14 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ def get_call_signature_param_names(call_signatures):
# add named params
for call_sig in call_signatures:
# Allow protected access, because it's a public API.
module = call_sig._name.get_parent_until()
module = call_sig._name.get_root_context()
# Compiled modules typically don't allow keyword arguments.
if not isinstance(module, compiled.CompiledObject):
for p in call_sig.params: