Emscripten Build of "Unpacking in Comprehensions" Reference Implementation
Source Code
PEP
Discussion Thread
import sys
import platform
print("Build:", *platform.python_build())
print(f"Compiler: {platform.python_compiler()}")
print(f"Platform: {platform.platform()}")
print()
words = [
[73, 102, 32], [121, 111, 117, 32], [119, 97, 110, 116, 32],
[109, 101, 32], [116, 111, 32], [103, 111, 32],
[111, 110, 32], [97, 114, 103, 117, 105, 110, 103, 44, 32],
[121, 111, 117, 39, 108, 108, 32], [104, 97, 118, 101, 32],
[116, 111, 32], [112, 97, 121, 32], [102, 111, 114, 32],
[97, 110, 111, 116, 104, 101, 114, 32], [102, 105, 118, 101, 32],
[109, 105, 110, 117, 116, 101, 115, 46]
]
for letter in (*word for word in words):
print(chr(letter), end='')
print()
Note that Emscripten builds of CPython do not currently support
asyncio, so expect errors when running code that uses
asyncio! If you want to test the async stuff, you probably need to build the reference implementation yourself.
See
PEP 776 for more information.
Load Code: Tree Example
Load Code: Test Cases
Run Code
Start REPL
Stop
Clear Terminal