jfh
5cefa72dd4
Add rlcompleter.py from CPython 3.8.
2021-08-26 17:51:16 +03:00
Jeong YunWon
d7bacf0580
Merge pull request #2935 from zetwhite/master
...
os: implement os.nice
2021-08-25 14:15:31 +09:00
Jeong YunWon
67b338863e
Merge pull request #2897 from sobolevn/better-exceptions
...
Adds better exception macro
2021-08-25 03:22:14 +09:00
zetwhite
c57b8fbf43
Add os.nice
2021-08-25 02:35:39 +09:00
Jeong YunWon
aff0e3c2da
Merge pull request #2929 from youknowone/dict
...
prepare extension for each dict iterator types
2021-08-25 01:19:45 +09:00
Jeong YunWon
39ddad54d4
Merge pull request #2958 from DimitrisJim/use_sequenceindex
...
Use SequenceIndex instead of Either.
2021-08-25 01:00:44 +09:00
jfh
ab5ccd6beb
Use SequenceIndex instead of Either.
2021-08-24 18:11:49 +03:00
Jim Fasarakis-Hilliard
7f946daec4
Merge pull request #2955 from DimitrisJim/fix_empty_array_panic
...
Fixes panic when empty array is indexed.
2021-08-24 17:13:08 +03:00
jfh
92491906f5
Fixes panic when empty array is indexed.
2021-08-24 16:24:21 +03:00
Jim Fasarakis-Hilliard
45a64e10fe
Merge pull request #2954 from eldpswp99/add-deque.__copy__
...
add deque.__copy__
2021-08-24 16:18:29 +03:00
Jeong YunWon
63b5310d98
Merge pull request #2953 from eldpswp99/resolve-deque.rotate-panic
...
resolve deque.rotate panic
2021-08-24 21:23:35 +09:00
eldpswp99
4e62e82d4f
add deque.__copy__
2021-08-24 21:17:45 +09:00
eldpswp99
988c686e7d
resolve deque.rotate panic
2021-08-24 20:04:46 +09:00
Jim Fasarakis-Hilliard
27797e5f77
Merge pull request #2951 from DimitrisJim/repl_panic
...
Fix panic (debug), no indend (release) in REPL.
2021-08-24 09:26:35 +03:00
jfh
f889add815
Fix panic (debug), no indend (release) in REPL.
2021-08-24 08:39:55 +03:00
Bonsai
e66566f7b8
add deque __bool__ method ( #2931 )
...
Adds deque.bool
2021-08-24 08:30:20 +03:00
Jim Fasarakis-Hilliard
d544988aa6
Merge pull request #2946 from youknowone/format
...
Trivial clean up
2021-08-24 06:44:01 +03:00
Jeong YunWon
a4c65049bf
Fix int/float enum pickle ( #2945 )
...
Add {int,float}.__getnewargs__
2021-08-24 06:33:55 +03:00
Jeong YunWon
f4e863927d
reduce too deep indent depth
2021-08-24 02:52:33 +09:00
Jeong YunWon
1fe71aa2a1
clean up clippy allows
2021-08-24 01:53:46 +09:00
Jeong YunWon
43d4b10416
Merge pull request #2942 from qingshi163/bytes-fromhex-subclass
...
fix bytes and bytearray fromhex to support subclass
2021-08-24 00:50:41 +09:00
Jeong YunWon
1b20dd5d1a
Merge pull request #2932 from moreal/bugfix/dict-contains-check-from-its-attributes
...
Find key from only its attributes
2021-08-24 00:48:21 +09:00
Myunghoon Park
ca1e349a18
support deuqe.index using start, end index ( #2944 )
...
Support deque.index using start, end index
2021-08-23 17:44:14 +03:00
Kangzhi Shi
1384133636
fix bytes and bytearray fromhex support subclass
2021-08-23 16:43:01 +02:00
Moreal
0548fa1444
Unmark unittest.expectedFailure from fixed tests
2021-08-23 22:01:35 +09:00
Jeong YunWon
1c96338a2a
Merge pull request #2941 from Snowapril/fix-err-msg
...
Fix error message incompatibility
2021-08-23 18:57:16 +09:00
snowapril
9ab1c96720
builtins: fix error message incompatibility
...
This commit fix issue #2939 .
Add self.code.obj field in error message for
remove incompatibility with cpython.
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-08-23 16:19:40 +09:00
Kangzhi Shi
67b81c8db5
fix object.__format__ error string
2021-08-23 08:18:45 +02:00
Moreal
4a00c902d8
Mark unittest.expectedFailure for test containing appeared bug
...
At 'enum.py' 223 line, there is the code to check `member_type` contains
some methods. But it was fixed to find attribute from base types, in
https://github.com/RustPython/RustPython/pull/2932 . So it seems
appeared.
```
if not any(m in member_type.__dict__ for m in methods):
```
2021-08-23 08:54:12 +09:00
Moreal
a5e7d25dee
Bump 'enum' module from CPython 3.8.7
2021-08-23 08:54:12 +09:00
Moreal
4b3220b888
Find key from only attributes
2021-08-23 08:54:12 +09:00
Jeong YunWon
60edbdd427
Merge pull request #2938 from DimitrisJim/deque_repr
...
Fix deque repr hang if element __repr__ mutates.
2021-08-23 00:25:00 +09:00
whgusdn321
04d77c23be
Fix extendleft method of deque ( #2893 )
...
Fix extendleft function of deque.
2021-08-22 17:55:25 +03:00
jfh
fd23e4e917
Fix repr hang if __repr__ is evil.
2021-08-22 16:57:05 +03:00
Snowapril
7a16350605
Fix list entering deadlock in several methods ( #2933 )
...
Resolve list deadlock
In current list lock implementation, some methods do not unlock
readguard before entering loop.
2021-08-22 14:49:36 +03:00
Myunghoon Park
bfd9e39810
resolve deque deadlock using state ( #2934 )
...
Resolve deque deadlock using state
2021-08-22 14:31:03 +03:00
Jeong YunWon
488e756f67
Merge pull request #2927 from eldpswp99/make-dict-iterator-use-atomic-operation
...
make dict iterator use atomic operation
2021-08-22 20:27:17 +09:00
eldpswp99
19ce637200
change function name to represent atomic function
2021-08-22 19:00:54 +09:00
Jim Fasarakis-Hilliard
ac98e08950
Merge pull request #2923 from youknowone/derive-text-signature
...
derive __text_signature__ from method definition
2021-08-22 12:43:50 +03:00
Jeong YunWon
da166186de
derive __text_signature__ from definition
2021-08-22 17:37:42 +09:00
Jeong YunWon
573b28f35f
remove manual signature
2021-08-22 17:37:38 +09:00
Jeong YunWon
fb461c287c
Merge pull request #2928 from RustPython/upd-types
...
Update types.py to CPython 3.8
2021-08-22 15:18:52 +09:00
Jeong YunWon
ab83fe724a
prepare custom extension for dict iterators
2021-08-22 14:22:51 +09:00
Noa
c763b783b5
Update types.py to CPython 3.8
2021-08-22 00:07:02 -05:00
Jeong YunWon
3f25fac4d5
Merge pull request #2924 from RustPython/fix-class_getitem
...
Fix __class_getitem__ slightly
2021-08-22 13:51:27 +09:00
eldpswp99
b6cd761e01
make dict iterator use atomic operation
2021-08-22 13:36:33 +09:00
Nikita Sobolev
ba74a9a239
Fixes typos in all other files
2021-08-22 12:42:13 +09:00
Noa
4a71420f4f
Give correct error message for type with __mro_entries__ passed to type()
2021-08-21 16:48:25 -05:00
Noa
5cfdb3361e
Add test.test_genericclass from CPython 3.8
2021-08-21 16:33:31 -05:00
Noa
0494472c0e
Don't define object.__class_getitem__
2021-08-21 16:15:58 -05:00