Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
d6192cd
merged from other brach
TheAnyKey May 7, 2020
a447b88
merges testutils
TheAnyKey May 8, 2020
84a6e8e
merged from TheAnyKey/p39_string_rem_pre_suffix
TheAnyKey May 8, 2020
da09370
Revert "merged from TheAnyKey/p39_string_rem_pre_suffix"
TheAnyKey May 8, 2020
d3dafda
Implement LCM and GCD from Py3.9; merged from TheAnyKey/p39_math
TheAnyKey May 8, 2020
ab9c2f2
imported tests from cpython 3.6a5 for math. skipping all failing tests
TheAnyKey May 8, 2020
f448654
Make PyArrayIter ThreadSafe
palaviv May 9, 2020
94e93f7
Make PyDeque, PyDequeIterator ThreadSafe
palaviv May 9, 2020
1b585bd
Make Reader ThreadSafe
palaviv May 9, 2020
75af7f6
Make PyBytesIO, PyStringIO ThreadSafe
palaviv May 9, 2020
4cf5178
Make PyItertools* ThreadSafe
palaviv May 9, 2020
ebf6b51
Merge pull request #1911 from TheAnyKey/TheAnyKey/p39_dict_union_pr
palaviv May 9, 2020
8466f45
Fix clippy error
palaviv May 9, 2020
25913a6
Remove expected failure from test_exhausted_iterator
palaviv May 9, 2020
b7e9167
simplified implementation and commented tests
TheAnyKey May 10, 2020
73d35bc
add support for getresuid
mrmiywj May 10, 2020
7a3df36
Merge pull request #1920 from mrmiywj/add_support_for_getresuid
coolreader18 May 10, 2020
9352695
add_getresgid_support
mrmiywj May 10, 2020
9b03e9a
Merge pull request #1919 from palaviv/threading-stdlib
windelbouwman May 12, 2020
a48cd71
Merge pull request #1921 from mrmiywj/add_getresgid_support
windelbouwman May 12, 2020
86dd0d6
suppress new version of flake8 lint error for test
youknowone May 12, 2020
e98ee15
Fix datetime.fromtimestamp OverflowError
youknowone May 12, 2020
7c51a91
Merge pull request #1924 from youknowone/pylint
coolreader18 May 13, 2020
160afda
Merge pull request #1916 from TheAnyKey/TheAnyKey/p39_math_pr
palaviv May 15, 2020
59ce997
Mark JsonScanner as ThreadSafe
palaviv May 15, 2020
8938125
Make DirEntry, ScandirIterator ThreadSafe
palaviv May 15, 2020
4ca4709
Mark PyStruct as ThreadSafe
palaviv May 15, 2020
0cea276
Make PyRandom ThreadSafe
palaviv May 15, 2020
cc2e97c
Mark PyPattern, PyMatch as ThreadSafe
palaviv May 15, 2020
8042ff8
Make PySocket ThreadSafe
palaviv May 15, 2020
13f2377
Make Popen ThreadSafe
palaviv May 15, 2020
676c641
Mark PySymbol, PySymbolTable as ThreadSafe
palaviv May 15, 2020
3650a2c
Make PyUCD as ThreadSafe
palaviv May 15, 2020
abdea90
Make PyHKEY ThreadSafe
palaviv May 15, 2020
fc21d72
Add unsafe Sync for PyHKEY and Popen
palaviv May 15, 2020
5877f41
Merge pull request #1925 from youknowone/fix-datetime
youknowone May 15, 2020
559d91a
Merge pull request #1926 from palaviv/threading-stdlib-2
youknowone May 15, 2020
baf3ec1
Merge pull request #1927 from palaviv/threading-stdlib-3
youknowone May 15, 2020
cdd9813
EOF after `\\` raise EOF Error
HyeockJinKim May 15, 2020
4647731
Merge pull request #1929 from HyeockJinKim/newline
coolreader18 May 16, 2020
1c4d376
Make dict_iterator ThreadSafe
palaviv May 16, 2020
fd70851
Make wasm objects Send + Sync
palaviv May 16, 2020
e03fb35
Make PyValue, PyObjectPayload Send + Sync
palaviv May 16, 2020
fb5862d
Remove ThreadSafe trait
palaviv May 16, 2020
621c309
Make PySslContext, PySslSocket ThreadSafe
palaviv May 16, 2020
ebebda3
implementation of generalized decorators and test update from cpython
TheAnyKey May 6, 2020
90e52ab
merged and prepared for PR
TheAnyKey May 16, 2020
1bd7824
Remove some nesting from impl_pymodule, it doesn't fix the span issue…
coolreader18 May 17, 2020
6a3d332
Add test.test_binop from CPython 3.8.2
coolreader18 May 17, 2020
bf6060a
Move some vm fields to an Arc-wrapped struct
coolreader18 May 17, 2020
5f93f83
Move more fields
coolreader18 May 17, 2020
198e449
recursion_limit is actually thread-local
coolreader18 May 17, 2020
f103b0c
Update the _thread module to have actual mutexes
coolreader18 May 17, 2020
b31f23f
Add RLock.tp_new
coolreader18 May 17, 2020
93894b0
Merge pull request #1930 from palaviv/threading-support
coolreader18 May 17, 2020
e110f5e
Impl Send + Sync for RawReentrantMutex
coolreader18 May 17, 2020
9df0374
support setregid in os module
mrmiywj May 18, 2020
2b5597d
Merge pull request #1937 from mrmiywj/add_setregid_support_os
coolreader18 May 18, 2020
daaf906
Implement Python 3.9 style string functions: removeprefix and removes…
TheAnyKey May 19, 2020
53ada9f
Merge pull request #1932 from RustPython/coolreader18/minor-stuff
youknowone May 19, 2020
93f697c
Use a git version for RawReentrantMutex + RawMutexStatus
coolreader18 May 17, 2020
d4a24fa
support initgroups in os module
mrmiywj May 21, 2020
c7bb84f
Use StdRng instead of ThreadRng in _random
coolreader18 May 22, 2020
2ecfd48
Merge pull request #1931 from TheAnyKey/TheAnyKey/p39_generalize_deco…
coolreader18 May 22, 2020
970981c
Merge pull request #1938 from mrmiywj/support_initgroups_in_os
coolreader18 May 22, 2020
901e766
Merge pull request #1935 from RustPython/coolreader18/_thread-mutexes
coolreader18 May 22, 2020
6ed172d
Merge pull request #1933 from RustPython/coolreader18/arc-vm-state
coolreader18 May 22, 2020
63873e3
Box StdRng
coolreader18 May 23, 2020
7967d30
Merge pull request #1939 from RustPython/coolreader18/random-std-rng
coolreader18 May 23, 2020
97c51be
Add _thread.start_new_thread
coolreader18 May 17, 2020
56cfd83
Add more _thread APIs
coolreader18 May 17, 2020
0b98c18
Disable _thread on wasm
coolreader18 May 18, 2020
2e536ec
Add some TODO comments
coolreader18 May 18, 2020
4c5dc29
Box signal_handlers to reduce size_of::<VirtualMachine>()
coolreader18 May 18, 2020
304f403
Fix WeakSet equality testing
coolreader18 May 23, 2020
846aa96
Add test.{lock_tests,test_thread} from CPython 3.8.2
coolreader18 May 23, 2020
3a8daf1
Fix thread tests a bit
coolreader18 May 23, 2020
fc2f2d1
Add TODO in snippets.test_threading
coolreader18 May 23, 2020
a6afd9e
Add _thread._count, repr(lock), and respect TIMEOUT_MAX
coolreader18 May 23, 2020
8680076
update rust version in readme
jamestwebber May 24, 2020
90223d8
Add TODO for parking_lot git dependency
coolreader18 May 25, 2020
b2cd95c
Merge pull request #1941 from jamestwebber/patch-1
coolreader18 May 25, 2020
3b29fb7
Initialize the vm with imports from _io instead of io
coolreader18 May 25, 2020
e14adc4
Merge pull request #1936 from RustPython/coolreader18/_thread-start_n…
coolreader18 May 25, 2020
3ba023b
Add todos in front of unittest.skip("RustPython") notes
coolreader18 May 26, 2020
f2eb588
Add the OpenBSD support that I am smart enough to
CodeTriangle May 27, 2020
b35b840
more conditional compiling, this time for errors
CodeTriangle May 27, 2020
d3dc524
rustfmt was not pleased
CodeTriangle May 28, 2020
eafb741
premature push, whoops
CodeTriangle May 28, 2020
0d7d4f0
Add expected_failure result type to jsontests
coolreader18 May 28, 2020
802913b
Merge pull request #1946 from CodeTriangle/master
coolreader18 May 28, 2020
8452dbe
Merge pull request #1942 from RustPython/coolreader18/init-with-_io
coolreader18 May 28, 2020
0ec86f1
Add num_expected_failures stat to jsontests
coolreader18 May 29, 2020
02e3c22
Add code attribute to SystemExit
palaviv May 29, 2020
510d62a
Add test_argparse from CPython 3.8
palaviv May 29, 2020
7b6b929
Support converting from string in complex
palaviv May 29, 2020
6f9d882
Support name,mode in TextIOWrapper, _BufferedIOBase
palaviv May 29, 2020
38c0bf9
Support sign before dot in float parsing
palaviv May 29, 2020
3b03674
Set mode in io_open
palaviv May 29, 2020
2862845
Fix clippy warning
palaviv May 29, 2020
dfc50dc
Clear buffered_io_base
palaviv May 29, 2020
09d849a
Distinguish MultipleStarArgs and InvalidStarArgs compile errors
youknowone May 12, 2020
e4be376
comprehension starred expression compatibility
youknowone May 12, 2020
7bce7ba
Fix SyntaxError visualize order: message first location later
youknowone May 12, 2020
9338dcd
Fix unpack_ex related messages
youknowone May 12, 2020
b562ff5
Merge pull request #1922 from youknowone/unpack-ex
coolreader18 May 30, 2020
3a524d3
Merge pull request #1947 from palaviv/test-argparse
palaviv May 30, 2020
1161fe2
Initial implementation of Py310 int.bit_count
TheAnyKey May 31, 2020
e6e3222
Merge branch 'master' into TheAnyKey/p310_int_bitcount
TheAnyKey May 31, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions Lib/_rp_thread.py

This file was deleted.

3 changes: 3 additions & 0 deletions Lib/_weakrefset.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,6 @@ def union(self, other):

def isdisjoint(self, other):
return len(self.intersection(other)) == 0

def __repr__(self):
return repr(self.data)
11 changes: 10 additions & 1 deletion Lib/importlib/_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,12 +1149,21 @@ def _setup(sys_module, _imp_module):

# Directly load built-in modules needed during bootstrap.
self_module = sys.modules[__name__]
for builtin_name in ('_thread', '_warnings', '_weakref'):
for builtin_name in ('_warnings', '_weakref'):
if builtin_name not in sys.modules:
builtin_module = _builtin_from_name(builtin_name)
else:
builtin_module = sys.modules[builtin_name]
setattr(self_module, builtin_name, builtin_module)
# _thread was part of the above loop, but other parts of the code allow for it
# to be None, so we handle it separately here
builtin_name = '_thread'
if builtin_name in sys.modules:
builtin_module = sys.modules[builtin_name]
else:
builtin_spec = BuiltinImporter.find_spec(builtin_name)
builtin_module = builtin_spec and _load_unlocked(builtin_spec)
setattr(self_module, builtin_name, builtin_module)


def _install(sys_module, _imp_module):
Expand Down
7 changes: 3 additions & 4 deletions Lib/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
'warn', 'warning', 'getLogRecordFactory', 'setLogRecordFactory',
'lastResort', 'raiseExceptions']

# TODO: import threading
import _thread
import threading

__author__ = "Vinay Sajip <[email protected]>"
__status__ = "production"
Expand Down Expand Up @@ -208,7 +207,7 @@ def _checkLevel(level):
#the lock would already have been acquired - so we need an RLock.
#The same argument applies to Loggers and Manager.loggerDict.
#
_lock = _thread.RLock()
_lock = threading.RLock()

def _acquireLock():
"""
Expand Down Expand Up @@ -844,7 +843,7 @@ def createLock(self):
"""
Acquire a thread lock for serializing access to the underlying I/O.
"""
self.lock = _thread.RLock()
self.lock = threading.RLock()
_register_at_fork_acquire_release(self)

def acquire(self):
Expand Down
Loading