From dae5b146ff152b3a6972fdc62c815c819426dd99 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Sun, 3 Feb 2019 02:30:58 +0100 Subject: [PATCH 1/2] fixed converter --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 92623e8db..89256cfd8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ If you wish to update the online documentation. Push directly to the `release` b - `obj`: python builtin types - `src`: using the other subcrates to bring rustpython to life. - `docs`: documentation (work in progress) -- `py_code_object`: CPython bytecode to rustpython bytecode convertor (work in progress) +- `py_code_object`: CPython bytecode to rustpython bytecode converter (work in progress) - `wasm`: Binary crate and resources for WebAssembly build - `tests`: integration test snippets From 167aefa8296837b8c50272b010adef1daf752e52 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Sun, 3 Feb 2019 02:35:05 +0100 Subject: [PATCH 2/2] Update builtins.md --- docs/builtins.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/builtins.md b/docs/builtins.md index d918f0861..2daa2b275 100644 --- a/docs/builtins.md +++ b/docs/builtins.md @@ -1,6 +1,6 @@ Byterun -* Builtins are exposted to frame.f_builtins +* Builtins are exposed to frame.f_builtins * f_builtins is assigned during frame creation, self.f_builtins = f_locals['__builtins__'] if hasattr(self.f_builtins, '__dict__'): @@ -21,10 +21,10 @@ TODO: * Implement a new type NativeFunction * Wrap a function pointer in NativeFunction * Refactor the CALL_FUNCTION case so it can call both python function and native function -* During frame creation, force push a nativefunction `print` into the namespace +* During frame creation, force push a native function `print` into the namespace * Modify LOAD_* so they can search for names in builtins * Create a module type * In VM initialization, load the builtins module into locals -* During frame creation, create a field that conatins the builtins dict +* During frame creation, create a field that contains the builtins dict