Commit Graph

1690 Commits

Author SHA1 Message Date
rmliddle
dda3d7ffb7 Bug fix for sequential Writes, New File Writes 2019-01-21 20:03:36 +11:00
rmliddle
3845e23881 -Logging length in FileIO write, +Bytes to String in TextIOBase 2019-01-19 14:13:12 +11:00
rmliddle
b54738978a Remaining IO open classes: TextBaseIO, TextWrapperIO 2019-01-17 21:20:31 +11:00
rmliddle
30165f6c8a open builtin 2019-01-16 20:16:56 +11:00
rmliddle
edc720e79f Buffered Objects for Open 2019-01-14 20:32:27 +11:00
rmliddle
2bbd4fd18f BufferedIOBase Read 2019-01-13 10:54:47 +11:00
Windel Bouwman
ade4c88d90 Merge pull request #256 from RustPython/fix-deployment-again
Fix the deploy condition for missing spaces around equals sign
2019-01-12 22:44:38 +01:00
Windel Bouwman
e41b9179f5 Merge pull request #254 from RustPython/list_index
Added list.index()
2019-01-12 10:25:42 +01:00
Shing Lyu
83f05c6448 Fix the deploy condition for missing spaces around equals sign 2019-01-10 22:09:33 +01:00
Shing Lyu
5e8eb8a001 Added list.index() 2019-01-10 22:01:42 +01:00
Windel Bouwman
ce36919fe3 Merge pull request #255 from adamchainz/patch-1
Update example
2019-01-10 20:27:51 +01:00
Adam Johnson
32a58f8897 Update example
Improve spelling, grammar, and HTML a bit on the example page.
2019-01-10 14:07:08 +00:00
Windel Bouwman
cab2e0d076 Merge pull request #250 from RustPython/fix-deploymnet
Limit the deployment only to the specific build job
2019-01-09 16:36:46 +01:00
rmliddle
5e1324fd23 os modes 2019-01-09 20:56:08 +11:00
Shing Lyu
7c8ebee43b Limit the deployment only to the specfic build job 2019-01-08 22:37:31 +01:00
rmliddle
9041129bb8 read_into on FileIO 2019-01-08 18:10:35 +11:00
rmliddle
6deb71d84f os.open impl 2019-01-08 12:14:43 +11:00
rmliddle
dc6238bb0c __offset__ workaround 2019-01-05 21:38:33 +11:00
rmliddle
b783657477 file_io_readinto implementation for fixed length buffer reads 2019-01-04 19:35:33 +11:00
rmliddle
15d0c39c81 fixes to bytearray len 2019-01-04 19:34:28 +11:00
Windel Bouwman
6d0a25fb1c Merge pull request #248 from coolreader18/dockerfile
Create dockerfiles for the rustpython binary and wasm demo
2019-01-03 19:26:38 +01:00
coolreader18
3e3d28fa1d Create dockerfiles for the rustpython binary and wasm demo 2019-01-02 18:57:27 -06:00
rmliddle
cbd8d7b171 len attributes on byte types 2019-01-03 08:16:04 +11:00
Windel Bouwman
a28b665396 Merge pull request #246 from rmliddle/bytes-representation
Bytes representation changed from hex to utf-8
2019-01-02 22:07:21 +01:00
rmliddle
3d6742a9e8 change to bytes repr 2019-01-02 21:25:48 +11:00
rmliddle
278e1a8298 method name change for fileio 2019-01-02 13:41:12 +11:00
rmliddle
08a9fd9819 memoryview object, FileIO Methods 2019-01-01 23:39:21 +11:00
Windel Bouwman
d508d130b6 Merge pull request #235 from xrmx/stringconstants
Implement most string module constants
2018-12-29 15:29:28 +01:00
Windel Bouwman
d425c26763 Merge pull request #245 from coolreader18/final-demo-improvements
Final demo improvements
2018-12-29 15:28:26 +01:00
coolreader18
231e3f2f16 Export PyEvalOptions in typescript defs 2018-12-28 21:57:41 -06:00
coolreader18
e65639f61a Remove yarn.lock 2018-12-28 21:43:13 -06:00
coolreader18
d7fdc5c177 Fix typescript hack 2018-12-28 14:42:43 -06:00
coolreader18
36997e12d9 Comment out WB's TS definitions using a hack 2018-12-28 14:35:45 -06:00
coolreader18
1d5df4130a Add doc comments and typescript custom section 2018-12-27 22:31:15 -06:00
coolreader18
b2772804f2 Add README and manifest fields for the WASM library 2018-12-27 21:06:59 -06:00
coolreader18
4cc7f5aa9c Merge #console and #code styles 2018-12-27 20:43:09 -06:00
coolreader18
1f02cc0fa3 Squash all demo commits onto one branch 2018-12-27 20:28:12 -06:00
Riccardo Magliocchetti
e4ca1655e9 Implement most string module constants
whitespace and thus printable are excluded because i haven't found
a way to make tests pass.
2018-12-27 23:48:11 +01:00
Windel Bouwman
4c5b5845bb Merge pull request #244 from coolreader18/boxed-rustfunc
Change RustPyFunc from a fn pointer to a Fn trait
2018-12-27 20:23:22 +01:00
AgentMacklin
79a3b13252 Implement most of the string methods. (#239)
* implemented more functions

* backup

* Improve demo site

* Formatting; move the `+ '\n'` hack to eval().

* Rename run_code() to run_from_textbox()

* Switch to using json.dumps for py_to_js()

* Clarify names of wasm builtins

* Remove dependency on num_bigint

* Allow injecting JS variables into python with eval_py()

eval_py(`return js_vars["a"]`, { a: 9 }) == 9

* dict() now should work properly

e.g.
``` dict(a=2, b=3) == {"a": 2, "b": 3} ```

* Add documentation for eval_py() and update error message handling

Also, switch from iterating over the values of js_injections and
serializing each of them individually to asserting it's an object and
then just stringifying the whole thing.

* Finish revamping `dict_new()`

* Add 'from x import *' syntax.

This is a separate opcode in CPython so I added it as such here.

* Add test for dicts

* added functions

* ran rustfmt and fixed isidentifier

* fixed zfill and make_title

* python3.6 doesn't contain isascii()
2018-12-27 20:22:04 +01:00
coolreader18
8303743aab Remove RustPyFunc trait, just use Fn(..) everywhere 2018-12-27 11:50:14 -06:00
coolreader18
09602a2ec6 Change RustPyFunc from a fn pointer to a Fn trait 2018-12-27 09:18:00 -06:00
Windel Bouwman
f325ef1499 Merge pull request #240 from coolreader18/json-error
Have the json ser/de functions throw an exception instead of panicking
2018-12-27 09:20:52 +01:00
Windel Bouwman
978e7eabe3 Merge pull request #241 from coolreader18/formatted-exceptions
Format exceptions nicely (no more RefCell { value: .. }!)
2018-12-27 09:14:35 +01:00
coolreader18
8fee5a8800 Run cargo fmt --all 2018-12-27 00:12:08 -06:00
coolreader18
396842ef9d Readd conflicting files 2018-12-27 00:04:20 -06:00
coolreader18
dfadd03f95 Remove (now outdated) previously conflicting files 2018-12-27 00:02:33 -06:00
coolreader18
ada92d33a3 Add conflicting files 2018-12-27 00:01:20 -06:00
coolreader18
2968982a8f Change README portion for compiling wasm 2018-12-26 23:51:28 -06:00
coolreader18
877206dc47 Switch from shell to npm scripts for demo using webpack and @wasm-tool/wasm-pack-plugin
Also change travis deploy to use new demo directory.
2018-12-26 23:34:51 -06:00