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 b0e4f3b

Browse filesBrowse files
committed
Update __hello__ and __phello__ from cpython
1 parent 547d752 commit b0e4f3b
Copy full SHA for b0e4f3b

File tree

Expand file treeCollapse file tree

8 files changed

+38
-5
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+38
-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()

‎Lib/__phello__/__init__.py

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
initialized = True
2+
3+
def main():
4+
print("Hello world!")
5+
6+
if __name__ == '__main__':
7+
main()

‎Lib/__phello__/ham/__init__.py

Copy file name to clipboardExpand all lines: Lib/__phello__/ham/__init__.py
Whitespace-only changes.

‎Lib/__phello__/ham/eggs.py

Copy file name to clipboardExpand all lines: Lib/__phello__/ham/eggs.py
Whitespace-only changes.

‎Lib/__phello__/spam.py

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
initialized = True
2+
3+
def main():
4+
print("Hello world!")
5+
6+
if __name__ == '__main__':
7+
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/Lib/python_builtins/__phello__

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

‎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.