Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49c93e1

Browse filesBrowse files
committed
Update __hello__
1 parent 547d752 commit 49c93e1
Copy full SHA for 49c93e1

File tree

3 files changed

+23
-5
lines changed
Filter options

3 files changed

+23
-5
lines changed

‎Lib/__hello__.py

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
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

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../Lib/__hello__.py

‎vm/src/frozen.rs

Copy file name to clipboardExpand all lines: vm/src/frozen.rs
+6-5Lines changed: 6 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.