fix some generator parents
This commit is contained in:
1 parent
c6b315aa2e
commit
a1b68945ed
3 files changed
+17
-9
No files matched your search
@@ -264,8 +264,14 @@ class Builtin(CompiledObject):
|
||||
return [d for d in super(Builtin, self).get_defined_names() if d.name != 'None']
|
||||
|
||||
|
||||
def _a_generator(foo):
|
||||
"""Used to have an object to return for generators."""
|
||||
yield 42
|
||||
yield foo
|
||||
|
||||
builtin = Builtin(_builtins)
|
||||
magic_function_class = CompiledObject(type(load_module), parent=builtin)
|
||||
generator_obj = CompiledObject(_a_generator(1.0))
|
||||
|
||||
|
||||
def _create_from_name(module, parent, name):
|
||||
|
||||
Reference in new issue
Block a user