Commit Graph

1154 Commits

Author SHA1 Message Date
Noah
491ca575b2 Implement os.utime() and fix some other things 2020-07-10 12:36:09 -05:00
Noah
6b6c4da511 Add pyarg(flatten) 2020-07-10 12:09:36 -05:00
Noah
e60a63d4fb Add some more methods to io classes 2020-07-10 12:09:32 -05:00
Noah
cd64884180 Implement os.get_terminal_size 2020-07-10 12:09:31 -05:00
Jeong YunWon
838abb8b76 Add collections.deque.__contains__ 2020-07-08 03:30:40 +09:00
Noah
ebab829f60 Switch to using parking_lot::Mutex instead of std::sync::Mutex 2020-07-04 22:58:18 -05:00
Ben Lewis
58ae89969f Fix str.isspace to support unicode space characters. 2020-07-04 11:20:33 +12:00
Noah
e06641dbe1 Fix all the weird Windows bugs 2020-06-22 04:10:44 -05:00
Noah
a7131ee46b Add _sysconfigdata_* 2020-06-21 16:47:42 -05:00
Noah
260d6f2be3 Try to fix weird windows error? 2020-06-21 16:47:42 -05:00
Noah
06a4796711 Add msvcrt.open_osfhandle 2020-06-21 16:47:42 -05:00
Noah
791d171cd6 Remove the rust _subprocess module 2020-06-21 16:47:41 -05:00
Noah
1fa4a0edad Add _winapi functions for subprocess 2020-06-21 16:47:41 -05:00
Noah
325706d86c Add _posixsubprocess 2020-06-21 16:47:39 -05:00
Noah
f40c3d4ab1 Fix thread.rs 2020-06-21 15:39:13 -05:00
Jeong YunWon
437a81996f Merge pull request #1970 from youknowone/sub-1962
non-subprocess stuff from #1962
2020-06-22 03:57:47 +09:00
Noah
ca7d9b625a Fix error with latest parking_lot version 2020-06-21 11:45:26 -05:00
Noah
ec1c9f9410 Add os.kill 2020-06-21 21:05:23 +09:00
Noah
26bcb1f6ab Add os.access on windows 2020-06-21 21:01:31 +09:00
Noah
d40533be5f Add os.wait[pid] and associated functions/constants 2020-06-21 20:53:45 +09:00
Noah
05a0202d43 Add os.posix_spawn[p] 2020-06-21 20:53:44 +09: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
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