Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,145 changes: 13,145 additions & 0 deletions 3.5.2/posixmodule.c

Large diffs are not rendered by default.

462 changes: 462 additions & 0 deletions 3.5.2/random.c

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions docs/dll/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script src='python.asm.js'></script>
<script>
window.runPython = Module.cwrap('runpython', 'number', ['string']);

var onReady = function() {
console.log("Running a python statement using pyexec(\"print('Success!')\");");
//runPython("print('Success!')\nimport os\nprint(os.listdir('/'))\n");
};

// Wait for the module to be ready before calling any functions.
var interval = setInterval(function () {
if (Module.calledRun) {
window.clearInterval(interval);
onReady();
}
}, 100);
</script>
</body>
</html>
Loading