Commit Graph

5706 Commits

Author SHA1 Message Date
Noah
a6afd9e855 Add _thread._count, repr(lock), and respect TIMEOUT_MAX 2020-05-23 20:13:56 -05:00
Noah
fc2f2d13f1 Add TODO in snippets.test_threading 2020-05-23 18:49:19 -05:00
Noah
3a8daf1966 Fix thread tests a bit 2020-05-23 18:47:29 -05:00
Noah
846aa96db8 Add test.{lock_tests,test_thread} from CPython 3.8.2 2020-05-23 18:44:47 -05:00
Noah
304f403586 Fix WeakSet equality testing 2020-05-23 17:37:48 -05:00
Noah
4c5dc2982d Box signal_handlers to reduce size_of::<VirtualMachine>() 2020-05-23 16:04:44 -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
970981c5f6 Merge pull request #1938 from mrmiywj/support_initgroups_in_os
support initgroups in os module
2020-05-21 23:23:01 -05:00
Noah
2ecfd48841 Merge pull request #1931 from TheAnyKey/TheAnyKey/p39_generalize_decorators
Implement Py39 generalized decorators (PEP 614)
2020-05-21 23:19:34 -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
Jeong YunWon
53ada9f541 Merge pull request #1932 from RustPython/coolreader18/minor-stuff
Some minor changes
2020-05-19 09:20:00 +09:00
TheAnyKey
daaf906320 Implement Python 3.9 style string functions: removeprefix and removesuffix PEP616
* implement and test Py39 string operations removeprefix and removesuffix.
* Added test snippets for it using an also contained extension of testutils
2020-05-19 09:17:13 +09:00
Noah
2b5597d923 Merge pull request #1937 from mrmiywj/add_setregid_support_os
support setregid in os module
2020-05-18 11:41:50 -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
93894b06c9 Merge pull request #1930 from palaviv/threading-support
Make PyValue Send + Sync
2020-05-17 14:37:53 -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
198e449ae0 recursion_limit is actually thread-local 2020-05-17 01:05:49 -05:00
Noah
5f93f833f8 Move more fields 2020-05-17 00:44:36 -05:00
Noah
bf6060a6df Move some vm fields to an Arc-wrapped struct 2020-05-17 00:43:22 -05:00
Noah
6a3d3324dd Add test.test_binop from CPython 3.8.2 2020-05-16 20:22:44 -05:00
Noah
1bd7824278 Remove some nesting from impl_pymodule, it doesn't fix the span issues though 2020-05-16 20:22:32 -05:00
TheAnyKey
90e52ab514 merged and prepared for PR 2020-05-16 14:33:30 +00:00
TheAnyKey
ebebda3ca6 implementation of generalized decorators and test update from cpython 2020-05-16 14:33:30 +00: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
Aviv Palivoda
e03fb35de4 Make PyValue, PyObjectPayload Send + Sync 2020-05-16 09:25:27 +03:00
Aviv Palivoda
fd708516bd Make wasm objects Send + Sync 2020-05-16 09:24:20 +03:00
Aviv Palivoda
1c4d37680b Make dict_iterator ThreadSafe 2020-05-16 09:17:02 +03:00
Noah
4647731eeb Merge pull request #1929 from HyeockJinKim/newline
EOF after `\\` raise EOF Error
2020-05-15 20:31:26 -05:00
HyeockJinKim
cdd98135ee EOF after \\ raise EOF Error
Return EOF Error to get the next line after` \\ `in the shell.

Closes #1928
2020-05-16 09:45:44 +09: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