Skip to content
Browse files

Merge pull request #695 from krekoten/module_const_set

  • Loading branch information
alex committed May 10, 2013
2 parents acbcdab + 429a4a4 commit e833f92d0f39855723e272e7ec5fe5db0b8d0da9
Showing with 2 additions and 4 deletions.
  1. +0 −1 spec/tags/core/module/const_set_tags.txt
  2. +0 −3 topaz/
  3. +2 −0 topaz/objects/

This file was deleted.

@@ -202,9 +202,6 @@ def STORE_CONSTANT(self, space, bytecode, frame, pc, idx):
w_value = frame.pop()
w_scope = frame.pop()
space.set_const(w_scope, name, w_value)
if (isinstance(w_value, W_ModuleObject) and is None
and isinstance(w_scope, W_ModuleObject) and is not None):
w_value.set_name_in_scope(space, name, w_scope)

def DEFINED_CONSTANT(self, space, bytecode, frame, pc, idx):
@@ -162,6 +162,8 @@ def _find_method_pure(self, space, method, version):
def set_const(self, space, name, w_obj):
self.constants_w[name] = w_obj
if isinstance(w_obj, W_ModuleObject) and is None and is not None:
w_obj.set_name_in_scope(space, name, self)

def find_const(self, space, name):
w_res = self.find_included_const(space, name)

0 comments on commit e833f92

Please sign in to comment.
You can’t perform that action at this time.