def new_block(self, method, context_frame, arguments): # Allocate a new block and set its class to be the block class result = Block(self._nilObject) result.set_class(self._get_block_class(arguments)) # Set the method and context of block result.set_method(method) result.set_context(context_frame) # Return the freshly allocated block return result