moo.core.tests.test_security_context.test_context_writer_equivalent_to_print
- moo.core.tests.test_security_context.test_context_writer_equivalent_to_print()
context.writer is the same callable that the sandbox’s print() uses internally (_print_._call_print calls writer(s)). Non-wizard verb code calling context.writer(‘msg’) is equivalent to print(‘msg’) — both write only to the current player’s own console.
The wizard check on write(obj, msg) guards writing to ARBITRARY players (by specifying obj). context.writer always targets the current session’s player and is not a bypass of that check.