Commit Graph

5780 Commits

Author SHA1 Message Date
Aviv Palivoda
7a89a4bcfd Merge pull request #1961 from mrmiywj/support_setresgid_in_os_module
Support setresgid in os module
2020-06-12 09:17:06 +03:00
Noah
f284b4ca95 Merge pull request #1951 from TheAnyKey/TheAnyKey/p38_named_expression_completion
Fix scope issue for non-locals
2020-06-10 16:36:12 -05:00
TheAnyKey
7fae55fa51 corrected and added comments 2020-06-10 18:13:47 +00:00
mrmiywj
6a1d7a8d11 return None if setregid success 2020-06-10 00:56:21 -07:00
mrmiywj
f5a0bcc5de support setresgid in os module 2020-06-10 00:05:55 -07:00
Ivan.Yang
b03b8923f1 support setgroups in os module 2020-06-09 17:49:55 +09:00
Noah
babaebad1a Merge pull request #1952 from RustPython/coolreader18/32bit-support
32 bit support
2020-06-06 21:03:43 -05:00
Noah
2fc90e17ac Fix error messages for index overflows 2020-06-06 17:14:32 -05:00
Noah
806d4bdfd4 Refactor a lot of objsequence 2020-06-06 17:14:32 -05:00
Noah
b245712949 Fix some 32-bit only oom tests + others 2020-06-06 17:14:32 -05:00
Noah
3f9665370d Allow to compile for 32-bit targets 2020-06-06 17:14:32 -05:00
Noah
5f34c61cb9 Merge pull request #1957 from RustPython/coolreader18/json-encode_basestring
Implement _json.encode_basestring{,_ascii}
2020-06-06 17:13:00 -05:00
Noah
74f261a22c Fix Rust 1.44 clippy warnings 2020-06-06 15:37:47 -05:00
Noah
0fb79e1086 Implement _json.encode_basestring{,_ascii} 2020-06-06 15:33:29 -05:00
Noah
569031d404 Merge pull request #1958 from xjvs/patch-1
Fix link to introduction of parser blog
2020-06-04 14:58:36 -05:00
xjvs
83a58a63a8 Update README.md 2020-06-04 18:21:45 +08:00
Noah
c2bbacf19a Add __name__ and __module__ fields to builtin functions 2020-06-03 16:19:28 -05:00
Noah
2224650fbb Impl DictKey for &PyStringRef 2020-06-03 16:17:19 -05:00
TheAnyKey
f5e83c2e90 Commit contains only new test cases from CPython 3.9 2020-06-03 18:25:02 +00:00
TheAnyKey
8f6841f61f removed extraneous test case, which is covered by test_scope.py 2020-06-03 18:18:00 +00:00
Jeong YunWon
5348e87772 Merge pull request #1948 from palaviv/home-page
Add link to home page
2020-06-03 16:41:55 +09:00
Jeong YunWon
5f40d99b04 Merge pull request #1917 from youknowone/test-unpack
Fix unpack error messages and add unittest test_unpack.py
2020-06-03 16:41:18 +09:00
Jeong YunWon
596bbfa58d Merge pull request #1955 from RustPython/coolreader18/fix-redox
Fix redox compilation
2020-06-03 13:33:41 +09:00
Jeong YunWon
1031fd7e8b Merge pull request #1954 from RustPython/coolreader18/fix-codecov
Fix codecov collection
2020-06-03 13:31:59 +09:00
Noah
f105e72e70 Merge pull request #1944 from RustPython/coolreader18/_thread-_local
Add _thread._local
2020-06-02 19:37:27 -05:00
Noah
fa2f5d640a Use the thread_local crate for local dicts 2020-06-02 15:32:01 -05:00
Noah
70f21cf4a1 Add script for running rustpython in redoxer with Lib 2020-06-02 15:21:35 -05:00
Noah
2576321c2e Fix compilation on redox 2020-06-02 15:21:33 -05:00
Noah
fb3a6c71da Disabling panic=abort temporarily 2020-06-02 15:13:11 -05:00
Jeong YunWon
595f68bd6f Merge pull request #1949 from gcarq/cpython-test-coverage
Add some tests from CPython 3.8.3
2020-06-03 00:36:53 +09:00
TheAnyKey
0ba6470ecf minor optimization 2020-06-02 08:03:15 +00:00
Noah
d940886411 Fix -Zno-landing-pads 2020-06-02 02:56:10 -05:00
TheAnyKey
1773d2bc14 fixed scoping issue for nonlocals - now also indirect outer scopes are supported 2020-06-01 22:47:28 +00:00
CPython dev
be8c71be24 Lib/test/test_unpack.py from CPython 3.8.2 2020-06-02 01:23:29 +09:00
Jeong YunWon
72b28e4e2d Fix unpack error messages 2020-06-02 01:23:29 +09:00
Jeong YunWon
9f2b047aa2 TextIOWrapper optional args encoding and errors 2020-06-02 01:09:24 +09:00
TheAnyKey
fd2e0aa41e Implement Py38 named expression (PEP 572) (#1934)
* Initial implementation of named expression and  import  according CPython tests

* added new instruction with inversed evaluation order for dict comprehension, in other cases use regular evaluation order

* added further aspects to implementation, cleaned up, imported test from CPython

* implemented first parts of scoping enhancement and extended checks

* completion of name resolution ongoing, now more test passing, still warinings and cleanup required

* further optimization of name resolution in nested scopes

* Initialize the vm with imports from _io instead of io

* Add the OpenBSD support that I am smart enough to

* adapted grammer to full support, most test are passing now, esp. all invalids are passed. Cleaned up in symboltable

* more conditional compiling, this time for errors

* rustfmt was not pleased

* premature push, whoops

* Add expected_failure result type to jsontests

* Initial implementation of named expression and  import  according CPython tests

* added new instruction with inversed evaluation order for dict comprehension, in other cases use regular evaluation order

* added further aspects to implementation, cleaned up, imported test from CPython

* implemented first parts of scoping enhancement and extended checks

* completion of name resolution ongoing, now more test passing, still warinings and cleanup required

* further optimization of name resolution in nested scopes

* adapted grammer to full support, most test are passing now, esp. all invalids are passed. Cleaned up in symboltable

* Fixed nameing convention violation and removed unnecessary information from symbol resolution. Added some more comments.

* Fixed nameing convention violation and removed unnecessary information from symbol resolution. Added some more comments.

Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
Co-authored-by: Reuben Staley <lighthousemaniac@gmail.com>
2020-06-01 11:22:15 +02:00
gcarq
1ea09d2771 Lib/test/test_operator.py: annotate remaining failing tests 2020-05-30 22:46:49 +02:00
gcarq
ca26b2e619 Lib/test/test_exception_hierarchy.py from CPython 3.8.3 2020-05-30 22:31:16 +02:00
gcarq
28ee6cd133 Lib/test/test_module.py from CPython 3.8.3 2020-05-30 22:24:55 +02:00
gcarq
321aa024bd Lib/test/test_operator.py from CPython 3.8.3 2020-05-30 22:20:04 +02:00
gcarq
5734627ea0 Lib/test/test_errno.py from CPython 3.8.3 2020-05-30 22:15:55 +02:00
Aviv Palivoda
5245528b24 Add link to home page 2020-05-30 10:41:57 +03:00
Aviv Palivoda
3a524d3bc2 Merge pull request #1947 from palaviv/test-argparse
Add CPython argparse test
2020-05-30 10:32:17 +03:00
Noah
b562ff5fe6 Merge pull request #1922 from youknowone/unpack-ex
Fix unpack_ex error messages
2020-05-30 01:22:52 -05:00
Jeong YunWon
9338dcdf45 Fix unpack_ex related messages 2020-05-30 01:07:38 +00:00
Jeong YunWon
7bce7baf4a Fix SyntaxError visualize order: message first location later 2020-05-30 01:07:38 +00:00
Jeong YunWon
e4be376336 comprehension starred expression compatibility 2020-05-30 01:07:38 +00:00
Jeong YunWon
09d849ab0a Distinguish MultipleStarArgs and InvalidStarArgs compile errors 2020-05-30 01:07:38 +00:00
Aviv Palivoda
dfc50dcc8f Clear buffered_io_base 2020-05-29 19:59:53 +03:00