Fix: stdlib issues with the latest CompiledObject changes.
This commit is contained in:
1 parent
c9a5caa96e
commit
86037222b4
2 files changed
+2
-2
No files matched your search
@@ -505,7 +505,7 @@ def get_special_object(evaluator, identifier):
|
||||
def compiled_objects_cache(func):
|
||||
def wrapper(evaluator, obj, parent=None, module=None):
|
||||
# Do a very cheap form of caching here.
|
||||
if parent is None and obj != _builtins:
|
||||
if parent is None and not inspect.ismodule(obj):
|
||||
parent = create(evaluator, _builtins)
|
||||
|
||||
key = id(obj), id(parent), id(module)
|
||||
|
||||
Reference in new issue
Block a user