Jeong YunWon
e95529aca0
introduce ArgSize
2023-03-10 06:21:39 +09:00
Jeong YunWon
ed7bcf787c
expose ArgIndex
2023-03-10 06:21:39 +09:00
Jeong YunWon
87728c4452
Merge pull request #4608 from coolreader18/bag-deser
...
Rework frozen modules and directly deserialize to CodeObject<Literal>
2023-03-10 05:19:23 +09:00
Jeong YunWon
8fb53964e4
Merge pull request #4676 from dalinaum/test_unpack
...
Update test/test_unpack.py from CPython 3.11.2
2023-03-10 04:03:40 +09:00
LYK
eb7daf1b74
Update test/test_unpack.py from CPython 3.11.2
2023-03-10 03:24:36 +09:00
Jeong YunWon
ea665cb743
Merge pull request #4615 from xiaozhiyan/binaryops-with-number-protocol
...
Improve: binary ops with Number Protocol
2023-03-10 02:47:01 +09:00
Jeong YunWon
2287720201
Mark flaky test_enum::TestFlag::test_unique_composite skip
2023-03-10 02:46:14 +09:00
Jeong YunWon
91b57a3f28
Fix clippy warnings
2023-03-10 02:05:52 +09:00
Jeong YunWon
97d69bd437
pin rust-toolchain
2023-03-10 01:49:29 +09:00
Jeong YunWon
3c4ac0e5a2
clean up PyNumber interfaces
2023-03-10 01:37:30 +09:00
Jeong YunWon
9822749c92
PyNumberBinaryOpSlot -> PyNumberBinaryOp
...
it is not a slot
2023-03-10 01:17:44 +09:00
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
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