Skip to content

Commit 49c93e1

Browse files
committed
Update __hello__
1 parent 547d752 commit 49c93e1

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

Lib/__hello__.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
initialized = True
2+
3+
class TestFrozenUtf8_1:
4+
"""\u00b6"""
5+
6+
class TestFrozenUtf8_2:
7+
"""\u03c0"""
8+
9+
class TestFrozenUtf8_4:
10+
"""\U0001f600"""
11+
12+
def main():
13+
print("Hello world!")
14+
15+
if __name__ == '__main__':
16+
main()

vm/Lib/python_builtins/__hello__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../Lib/__hello__.py

vm/src/frozen.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ pub fn core_frozen_inits() -> impl Iterator<Item = (String, FrozenModule)> {
1111
};
1212
}
1313

14-
ext_modules!(
15-
iter,
16-
source = "initialized = True; print(\"Hello world!\")\n",
17-
module_name = "__hello__",
18-
);
14+
// keep as example but use file one now
15+
// ext_modules!(
16+
// iter,
17+
// source = "initialized = True; print(\"Hello world!\")\n",
18+
// module_name = "__hello__",
19+
// );
1920

2021
// Python modules that the vm calls into, but are not actually part of the stdlib. They could
2122
// in theory be implemented in Rust, but are easiest to do in Python for one reason or another.

0 commit comments

Comments
 (0)