Commit Graph

1130 Commits

Author SHA1 Message Date
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
0fb79e1086 Implement _json.encode_basestring{,_ascii} 2020-06-06 15:33:29 -05: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
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
2576321c2e Fix compilation on redox 2020-06-02 15:21:33 -05: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
Aviv Palivoda
dfc50dcc8f Clear buffered_io_base 2020-05-29 19:59:53 +03:00
Aviv Palivoda
2862845645 Fix clippy warning 2020-05-29 19:56:32 +03:00
Aviv Palivoda
3b03674170 Set mode in io_open 2020-05-29 18:31:56 +03:00
Aviv Palivoda
6f9d882300 Support name,mode in TextIOWrapper, _BufferedIOBase 2020-05-29 17:49:42 +03:00
Reuben Staley
eafb741f51 premature push, whoops 2020-05-27 19:20:52 -06:00
Reuben Staley
d3dc52431a rustfmt was not pleased 2020-05-27 19:15:38 -06:00
Reuben Staley
b35b84064d more conditional compiling, this time for errors 2020-05-27 15:07:08 -06:00
Reuben Staley
f2eb588e5f Add the OpenBSD support that I am smart enough to 2020-05-27 01:41:07 -06:00
Noah
9850b5f0d1 Implement _thread._local 2020-05-25 01:26:51 -05:00
Noah
a6afd9e855 Add _thread._count, repr(lock), and respect TIMEOUT_MAX 2020-05-23 20:13:56 -05:00
Noah
2e536ec7b1 Add some TODO comments 2020-05-23 16:04:41 -05:00
Noah
0b98c185ed Disable _thread on wasm 2020-05-23 16:03:58 -05:00
Noah
56cfd83cc2 Add more _thread APIs 2020-05-23 16:03:57 -05:00
Noah
97c51be6b8 Add _thread.start_new_thread 2020-05-23 16:03:08 -05:00
Noah
7967d30453 Merge pull request #1939 from RustPython/coolreader18/random-std-rng
Use StdRng instead of ThreadRng in _random
2020-05-23 15:52:19 -05:00
Noah
63873e3343 Box StdRng 2020-05-23 12:09:01 -05:00
Noah
6ed172d84a Merge pull request #1933 from RustPython/coolreader18/arc-vm-state
Move some vm fields to an Arc-wrapped struct
2020-05-22 12:32:16 -05:00
Noah
901e7666be Merge pull request #1935 from RustPython/coolreader18/_thread-mutexes
Update the _thread module to have actual mutexes
2020-05-22 10:09:43 -05:00
Noah
c7bb84f7a2 Use StdRng instead of ThreadRng in _random 2020-05-21 21:06:27 -05:00
mrmiywj
d4a24fa3ff support initgroups in os module 2020-05-21 16:47:08 -07:00
Noah
93f697cc67 Use a git version for RawReentrantMutex + RawMutexStatus 2020-05-19 11:21:25 -05:00
mrmiywj
9df037424d support setregid in os module 2020-05-18 00:04:57 -07:00
Noah
e110f5efd2 Impl Send + Sync for RawReentrantMutex 2020-05-17 14:56:23 -05:00
Noah
b31f23ff9e Add RLock.tp_new 2020-05-17 14:32:06 -05:00
Noah
f103b0cab1 Update the _thread module to have actual mutexes 2020-05-17 14:32:04 -05:00
Noah
bf6060a6df Move some vm fields to an Arc-wrapped struct 2020-05-17 00:43:22 -05:00
Aviv Palivoda
621c3090ed Make PySslContext, PySslSocket ThreadSafe 2020-05-16 16:07:48 +03:00
Aviv Palivoda
fb5862da91 Remove ThreadSafe trait 2020-05-16 13:58:10 +03:00
Jeong YunWon
baf3ec16c0 Merge pull request #1927 from palaviv/threading-stdlib-3
Convert more stdlib objects to thread safe
2020-05-16 03:19:54 +09:00
Jeong YunWon
559d91af50 Merge pull request #1926 from palaviv/threading-stdlib-2
Convert more stdlib objects to thread safe
2020-05-16 03:17:37 +09:00
Jeong YunWon
5877f4167a Merge pull request #1925 from youknowone/fix-datetime
Fix datetime.fromtimestamp OverflowError
2020-05-16 03:15:25 +09:00
Aviv Palivoda
fc21d72704 Add unsafe Sync for PyHKEY and Popen 2020-05-15 17:42:32 +03:00
Aviv Palivoda
abdea909d3 Make PyHKEY ThreadSafe 2020-05-15 16:40:35 +03:00
Aviv Palivoda
3650a2cdce Make PyUCD as ThreadSafe 2020-05-15 16:34:54 +03:00
Aviv Palivoda
676c641366 Mark PySymbol, PySymbolTable as ThreadSafe 2020-05-15 16:32:24 +03:00
Aviv Palivoda
13f2377600 Make Popen ThreadSafe 2020-05-15 16:29:20 +03:00
Aviv Palivoda
8042ff8a86 Make PySocket ThreadSafe 2020-05-15 16:19:00 +03:00
Aviv Palivoda
cc2e97c436 Mark PyPattern, PyMatch as ThreadSafe 2020-05-15 10:34:23 +03:00
Aviv Palivoda
0cea276cb1 Make PyRandom ThreadSafe 2020-05-15 10:31:38 +03:00
Aviv Palivoda
4ca4709d5a Mark PyStruct as ThreadSafe 2020-05-15 09:25:47 +03:00