From a760f337a0348368f84bf18ae3ff2cade4e6bd4c Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" <69878+youknowone@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:25:28 +0900 Subject: [PATCH] Make __hello_only__ a frozen-only alias of __hello__ (#7160) Remove __hello_only__.py source file and its symlink. Register __hello_only__ as a frozen module alias reusing __hello__ bytecode, matching the behavior where origname is None (no source file). --- Lib/__hello_only__.py | 2 -- crates/vm/Lib/python_builtins/__hello_only__.py | 1 - crates/vm/src/vm/interpreter.rs | 7 +++++++ 3 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 Lib/__hello_only__.py delete mode 120000 crates/vm/Lib/python_builtins/__hello_only__.py diff --git a/Lib/__hello_only__.py b/Lib/__hello_only__.py deleted file mode 100644 index 1cefa0a2f..000000000 --- a/Lib/__hello_only__.py +++ /dev/null @@ -1,2 +0,0 @@ -initialized = True -print("Hello world!") diff --git a/crates/vm/Lib/python_builtins/__hello_only__.py b/crates/vm/Lib/python_builtins/__hello_only__.py deleted file mode 120000 index 795ca3ef1..000000000 --- a/crates/vm/Lib/python_builtins/__hello_only__.py +++ /dev/null @@ -1 +0,0 @@ -../../../../Lib/__hello_only__.py \ No newline at end of file diff --git a/crates/vm/src/vm/interpreter.rs b/crates/vm/src/vm/interpreter.rs index 9138a7335..a71a9c081 100644 --- a/crates/vm/src/vm/interpreter.rs +++ b/crates/vm/src/vm/interpreter.rs @@ -491,6 +491,13 @@ fn core_frozen_inits() -> impl Iterator { package: false, }, )); + entries.push(( + "__hello_only__", + FrozenModule { + code: hello_code, + package: false, + }, + )); } if let Some(code) = entries .iter()