Commit Graph

5363 Commits

Author SHA1 Message Date
Jeong YunWon
aa36a944bf Fix new bytes with overflow error 2020-04-11 10:56:24 +09:00
Jeong YunWon
c7467e444d Merge pull request #1839 from RustPython/coolreader18/stdlib-json-py
Replace the json module with the Python implementation from CPython
2020-04-10 14:12:08 +09:00
Noah
9420622d6d Update chrono 2020-04-09 21:45:16 -05:00
Noah
3eb687d976 Merge pull request #1846 from RustPython/coolreader18/print-sys-stdout
Direct print() to sys.stdout
2020-04-08 13:29:35 -05:00
Noah
95d12d02ae Mark failing tests for test_json 2020-04-08 12:26:28 -05:00
Noah
5e58b05a93 Fix subprocess.call 2020-04-08 12:16:19 -05:00
Noah
9d136d6450 Add test.test_json from CPython 3.8.2 2020-04-08 12:16:19 -05:00
Noah
d5b0965479 Implement bytearray.decode 2020-04-08 12:16:19 -05:00
Noah
7ab9a641bc Remove the serde_json based json module, update tests 2020-04-08 12:16:19 -05:00
Noah
d897660b29 Add json/ from CPython 3.8.2 2020-04-08 12:16:19 -05:00
Noah
2cd42c58be Direct print() to sys.stdout 2020-04-08 12:10:00 -05:00
Noah
408032a015 Merge pull request #1842 from RustPython/coolreader18/callable-iter
Add iter(callable, sentinel)
2020-04-08 12:08:33 -05:00
Noah
e83c23bf60 Unmark expectedFailures 2020-04-08 11:35:36 -05:00
Jeong YunWon
3df6c04a72 Merge pull request #1845 from youknowone/byte-find
Refactor and fix bytes count/find
2020-04-09 01:26:42 +09:00
Noah
9a9246d517 Add callable iterator test 2020-04-08 10:10:56 -05:00
Noah
fd3fcc2449 Add iter(callable, sentinel) 2020-04-08 10:10:56 -05:00
Noah
f7e1d1c90a Merge pull request #1844 from youknowone/test-iter
unittest test_iter
2020-04-08 09:56:58 -05:00
Jeong YunWon
e28ab72b4e Refactor and fix str/bytes count/find/index 2020-04-08 13:13:15 +09:00
Jeong YunWon
8580ff7d3b mark failing tests in test_iter.py 2020-04-07 14:37:01 +09:00
CPython dev
6de255bc73 Lib/test/test_iter.py from CPython 3.8.2 2020-04-07 14:37:01 +09:00
CPython dev
40451bba6b Bump up test.support to CPython 3.8.2 2020-04-07 14:36:41 +09:00
Noah
f5de59a4bd Merge pull request #1834 from RustPython/coolreader18/jsontests
Add json output for CPython tests
2020-04-04 11:52:04 -05:00
Aviv Palivoda
3fb1d3f9d0 Merge pull request #1841 from palaviv/vendor-openssl
Use vendored version of openssl
2020-04-04 18:33:44 +03:00
Aviv Palivoda
b41943e080 Use vendored version of openssl 2020-04-04 13:49:07 +03:00
Noah
71af10bc5a Merge pull request #1744 from RustPython/coolreader18/wasm-inject-module
Add a better injectModule method to WASM
2020-04-03 15:39:39 -05:00
Noah
a8027ab48a Fix clippy lints 2020-04-03 12:34:01 -05:00
Noah
f33e2d3b39 Remove incognito from vm 2020-04-03 12:34:00 -05:00
Noah
4aee59527d Fix benchmarks (maybe?) 2020-04-03 12:34:00 -05:00
Noah
be565d30ae Make incognito a CodeFlag bit 2020-04-03 12:34:00 -05:00
Noah
5b2cfb442d Make from __future__ imports a syntactic construct in the compiler 2020-04-03 12:34:00 -05:00
Noah
80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Noah
9925d5b3bc Add test_inject_module 2020-04-03 12:34:00 -05:00
Noah
92ca0e7359 Add WASM vm.injectModule(name, source, imports?, strict_private?) 2020-04-03 12:34:00 -05:00
Noah
3530540679 Move syntax error conversion to convert.rs, add PyResultExt 2020-04-03 12:33:59 -05:00
Noah
a104d43d7f Merge pull request #1811 from RustPython/coolreader18/typ-generic-pyobj
Make PyObject.typ a Rc<PyObject<PyClass>>
2020-04-03 12:20:37 -05:00
Noah
7143b93203 Rename into_generic_pyobj -> into_typed_pyobj 2020-04-03 11:43:07 -05:00
Noah
ceb11d6bc1 Merge pull request #1827 from mireille-raad/master
Adding readme under parser and parser/src
2020-04-03 09:55:54 -05:00
Mireille Raad
9c1cb881d1 move content of readme file 2020-04-03 10:18:04 -04:00
Jeong YunWon
a6b23129ea Merge pull request #1816 from RustPython/coolreader18/posonly-error
Error on positional-only parameters passed as keywords
2020-04-03 15:23:18 +09:00
Noah
aad212299f Add tests for positional/keyword only arguments 2020-04-03 00:24:33 -05:00
Noah
652231a683 Error on positional-only parameters passed as keywords 2020-04-03 00:24:30 -05:00
Noah
807c84981c Fix typo
Co-Authored-By: Jeong YunWon <youknowone@users.noreply.github.com>
2020-04-03 00:12:59 -05:00
Jeong YunWon
91080470aa Merge pull request #1836 from RustPython/coolreader18/pyfunc-smallbox
Don't allocate for PyNativeFunc when it's just a fn pointer
2020-04-03 13:15:22 +09:00
Jeong YunWon
73f0b3c4ec Merge pull request #1835 from RustPython/coolreader18/fix-cached_property
Call __set_name__ on descriptors when initializing types
2020-04-03 12:53:47 +09:00
Noah
f66fde57c1 Add json output for CPython tests 2020-04-02 17:42:01 -05:00
Noah
2453b73417 Mark failing test 2020-04-02 17:42:01 -05:00
Noah
60d96c42a3 Fix passing a generator to OrderedDict() 2020-04-02 17:42:00 -05:00
Noah
dd92e90366 Add str.__format__ 2020-04-02 17:42:00 -05:00
Noah
53a6bc3f58 Add method.__func__ property 2020-04-02 17:41:52 -05:00
Noah
e2d7ab30aa Don't allocate for PyNativeFunc when it's just a fn pointer 2020-04-02 13:57:08 -05:00