Jeong YunWon
d9fc95c2a1
Fix sequence protocol concat
2023-03-10 01:17:43 +09:00
Jeong YunWon
788ccffb2b
Make PyNumberMethods static
2023-03-10 01:17:28 +09:00
Zhiyan Xiao
1fea829760
Do not skip test_xml_dom_minicompat.EmptyNodeListTestCase.test_emptynodelist___radd__
2023-03-10 00:10:09 +09:00
Zhiyan Xiao
53b89b704c
Temp: Skip test_mmap.MmapTests.test_concat_repeat_exception
2023-03-10 00:10:02 +09:00
Zhiyan Xiao
a949c35228
Temp: Skip test_collections.TestChainMap.test_union_operators
2023-03-09 23:51:14 +09:00
Zhiyan Xiao
81fbcbc1b2
Temp: Implement Number Protocol for PyDictKeys and PyDictItems
2023-03-09 23:48:46 +09:00
Jeong YunWon
05317f1664
temporary fill up missing number protocols
2023-03-09 23:43:15 +09:00
Zhiyan Xiao
8a42a68a4f
Temp: Implement Number Protocol for PyBool
2023-03-09 23:41:57 +09:00
Zhiyan Xiao
984db6798c
Add PyNumberSlots to support right binary ops
2023-03-09 23:41:48 +09:00
Zhiyan Xiao
ba9c354e1b
Add binary ops in Number Protocol to update_slot
2023-03-09 21:33:25 +09:00
Zhiyan Xiao
f1dc0a6fcb
Improve: binary ops with Number Protocol
2023-03-09 21:33:25 +09:00
Karatus
13d715e2a5
Binary ops with number protocol (partially imported)
...
from #4139 https://github.com/RustPython/RustPython/pull/4139
2023-03-09 21:33:25 +09:00
Jeong YunWon
1fceeab0fc
Merge pull request #4674 from carlosmiei/copy-update
...
Update copy.py from CPython 3.11
2023-03-09 21:19:47 +09:00
Jim Fasarakis-Hilliard
51020cd635
Merge pull request #4673 from youknowone/pin-rust-version
...
Pin our toolchain to Rust version 1.67.1
2023-03-09 13:23:09 +02:00
carlosmiei
4d05077ec3
Update test_copy.py from CPython 3.11
2023-03-09 10:59:44 +00:00
carlosmiei
5b6a4c4563
Update copy.py from CPython 3.11
2023-03-09 10:56:11 +00:00
Jeong YunWon
8e834cbdfc
Rust version 1.67.1
2023-03-09 19:47:38 +09:00
John Pham
27233364bc
Add init for array.rs ( #4667 )
2023-03-09 19:45:58 +09:00
Jeong YunWon
685532d44a
Merge pull request #4671 from eltociear/patch-1
...
Fix typo in number.rs
2023-03-09 17:31:28 +09:00
Ikko Eltociear Ashimine
692c8036b7
Fix typo in number.rs
...
seperate -> separate
2023-03-09 16:02:21 +09:00
Jim Fasarakis-Hilliard
f9715c442a
Merge pull request #4669 from carlosmiei/update-calendar
...
Update calendar.py from CPython 3.11
2023-03-08 23:37:34 +02:00
Jim Fasarakis-Hilliard
e73a1c3298
Merge pull request #4670 from carlosmiei/osx-support-test
...
Update test__osx_support.py from CPython 3.11
2023-03-08 23:36:57 +02:00
carlosmiei
129a6f187e
Update test__osx_support.py from CPython 3.11
2023-03-08 19:01:33 +00:00
carlosmiei
7710ed00d3
Update test_calendar from CPython 3.11
2023-03-08 17:41:08 +00:00
carlosmiei
fcc17254f6
Update calendar.py from CPython 3.11
2023-03-08 17:40:05 +00:00
Jeong YunWon
6edd3705a6
Merge pull request #4666 from dalinaum/tests
...
Update test/test_userlist.py and test_userdict.py from CPython 3.11.2
2023-03-08 15:28:06 +09:00
LYK
58f988bf33
Update test_userdict.py from CPython 3.11.2
...
Only whitespace is different.
2023-03-08 14:37:00 +09:00
CPython Developers
34a0615ac1
Update test/test_userlist.py from CPython 3.11.2
2023-03-08 14:34:40 +09:00
Jeong YunWon
5a74f08c84
Merge pull request #4654 from youknowone/pycallble
...
Add protocol object PyCallable
2023-03-08 05:01:31 +09:00
Jeong YunWon
bdce56df30
Merge pull request #4656 from dalinaum/with-type-error
...
Change error type for bad objects in "with" and "async with"
2023-03-08 05:00:43 +09:00
Jeong YunWon
f4a7b652c7
Merge pull request #4664 from TheYkk/main
...
Remove strict type to allow cross compiling
2023-03-08 04:58:23 +09:00
Kaan Karakaya
cb479bf199
Remove strict type to allow cross compiling
...
Signed-off-by: Kaan Karakaya <yusufkaan142@gmail.com >
2023-03-07 21:46:53 +03:00
Jeong YunWon
b10421a9b4
Merge pull request #4637 from youknowone/refactor-asnumber
...
Refactor with AsNumber::number_downcast_exact
2023-03-08 02:17:43 +09:00
LYK and Jeong YunWon
ef77e45427
Change error type for bad objects in "with" and "async with"
...
This patch does not cover all cases of `test_contextlib.py`
`bytecode::Instruction::SetupWith` and `BeforeAsyncWith`
raise a TypeError instead of an AttributeError.
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com >
2023-03-08 01:45:12 +09:00
Jeong YunWon
823b5288f9
Refactor AsNumber for PyInt
2023-03-08 01:37:58 +09:00
Jeong YunWon
c17951e3f6
Refactor AsNumber for PyFloat
2023-03-08 01:37:58 +09:00
Jeong YunWon
f0a29de87d
AsNumber::number_downcast_exact useful for actual numbers
2023-03-08 01:37:58 +09:00
Jeong YunWon
b60271a6cf
deprecate vm.invoke
2023-03-08 01:35:30 +09:00
Jeong YunWon
f00e6b69f2
Merge pull request #4659 from dalinaum/contextlib
...
Update contextlib.py and test_contextlib from CPython 3.11.2
2023-03-08 01:32:18 +09:00
Jeong YunWon
cc8515041b
Merge pull request #4658 from dalinaum/test_userstring
...
Update test/test_userstring.py from CPython 3.11.2
2023-03-08 01:31:57 +09:00
Jeong YunWon
01512e27a0
Merge pull request #4657 from dalinaum/test_weakset
...
Update test/test_weakset.py from CPython 3.11.2
2023-03-08 00:41:09 +09:00
CPython Developers
301b79c688
Update contextlib.py and test_contextlib from CPython 3.11.2
2023-03-08 00:12:07 +09:00
LYK
98654634ca
Update test/test_userstring.py from CPython 3.11.2
2023-03-07 23:58:26 +09:00
LYK
1812bd17a5
Mark a failing test of test/test_weakset.py
2023-03-07 23:49:18 +09:00
CPython Developers
7b6486cd30
Update test/test_weakset.py from CPython 3.11.2
2023-03-07 23:47:16 +09:00
seungha-kim
223fe14d85
Update to pass test for unhashable collections ( #4640 )
2023-03-07 23:45:33 +09:00
Jeong YunWon
5eb775462d
vm.invoke -> obj.call
2023-03-07 20:06:42 +09:00
Jeong YunWon
ed60687f11
Replace all of callable operations to PyCallable
2023-03-07 19:44:46 +09:00
Jeong YunWon
66d9514e12
remove vm.is_callable
2023-03-07 19:28:21 +09:00
Jeong YunWon
37cc852bfc
PyCallable
2023-03-07 19:28:13 +09:00