]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-84461: Improve WebAssembly in-browser demo (GH-91879)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Jul 2022 10:16:25 +0000 (03:16 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Jul 2022 10:16:25 +0000 (03:16 -0700)
commitca58ca8641267c67dc6a7e67ee4009906b350bbb
tree12a5cc867df231d1354a59d17afcd861b45f67ae
parent113b309f18103343a195f7c53c41763acf295167
gh-84461: Improve WebAssembly in-browser demo (GH-91879)

* Buffer standard input line-by-line

* Add non-root .editorconfig for JS & HTML indent

* Add support for clearing REPL with CTRL+L

* Support unicode in stdout and stderr

* Remove \r\n normalization

* Note that local .editorconfig file extends root

* Only normalize lone \r characters (convert to \n)

* Skip non-printable characters in buffered input

* Fix Safari bug (regex lookbehind not supported)

Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit a8e333d79aa639417e496181bcbad2cb801a7a56)

Co-authored-by: Trey Hunner <trey@treyhunner.com>
Tools/wasm/.editorconfig [new file with mode: 0644]
Tools/wasm/python.html
Tools/wasm/python.worker.js