Commit Graph

1118 Commits

Author SHA1 Message Date
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
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
Aviv Palivoda
89381258dd Make DirEntry, ScandirIterator ThreadSafe 2020-05-15 09:22:07 +03:00
Aviv Palivoda
59ce997460 Mark JsonScanner as ThreadSafe 2020-05-15 09:13:03 +03:00
Aviv Palivoda
160afdade2 Merge pull request #1916 from TheAnyKey/TheAnyKey/p39_math_pr
Implement Py3.9 LCM and GCD
2020-05-15 09:05:15 +03:00
Jeong YunWon
e98ee15d24 Fix datetime.fromtimestamp OverflowError 2020-05-13 03:30:03 +09:00
Windel Bouwman
a48cd7112a Merge pull request #1921 from mrmiywj/add_getresgid_support
add_getresgid_support
2020-05-12 08:41:56 +02:00
Windel Bouwman
9b03e9a548 Merge pull request #1919 from palaviv/threading-stdlib
Convert stdlib object to thread safe
2020-05-12 08:40:44 +02:00
mrmiywj
93526950a1 add_getresgid_support 2020-05-10 16:04:22 -07:00
mrmiywj
73d35bcdba add support for getresuid 2020-05-10 14:04:59 -07:00
TheAnyKey
b7e91677a7 simplified implementation and commented tests 2020-05-10 20:53:09 +00:00
Aviv Palivoda
8466f45f2a Fix clippy error 2020-05-09 23:23:18 +03:00
Aviv Palivoda
4cf5178d43 Make PyItertools* ThreadSafe 2020-05-09 22:58:18 +03:00
Aviv Palivoda
75af7f6b1c Make PyBytesIO, PyStringIO ThreadSafe 2020-05-09 12:07:35 +03:00