Commit Graph
7090 Commits
Author SHA1 Message Date
Jeong YunWon b052d646ee clean up PyCode 2023-03-19 04:57:06 +09:00
Jeong YunWon 174ef52df7 \#[pyclass] impl Py<PyType> for 2023-03-19 04:57:06 +09:00
Jeong YunWon 1fda3ba969 impl PyNativeFuncInternal for &Py<Self> form 2023-03-19 04:57:06 +09:00
Jeong YunWon f314328294 lifetime bounded TryFromBorrwoedObject 2023-03-19 04:57:06 +09:00
Jeong YunWon 0f24d66234 pyclass macro to recognize Py/PyRef pattern 2023-03-19 04:57:06 +09:00
Jim Fasarakis-Hilliard 2e4ff723aa Update anystr.rs 2023-03-18 21:22:01 +02:00
Jeong YunWon 1218ddd5dc Merge pull request #4709 from r3m0t/str-splitlines
Fix str.splitlines to recognise unicode line terminators
2023-03-19 00:42:18 +09:00
Jeong YunWon 330eaf3ed6 Add TODO comment to remove py_bytes_splitlines 2023-03-19 00:42:04 +09:00
Jim Fasarakis-Hilliard 2758a0ec53 Merge pull request #4714 from youknowone/refactor-useless-complexity
Refactor unnecessary complexity
2023-03-18 17:39:39 +02:00
Jeong YunWon de481bcd67 human readable PyIterIter::next 2023-03-18 22:43:32 +09:00
Jeong YunWon 12c96d06e4 Remove useless and_then 2023-03-18 22:10:25 +09:00
Jeong YunWon b572b91783 relocate a few int functions to common 2023-03-18 21:53:15 +09:00
Jeong YunWon ad29fbdd55 apply early returning pattern 2023-03-18 21:51:07 +09:00
Jeong YunWon 8851a246de Simplify Representable impls 2023-03-18 20:42:12 +09:00
Charles Hubain 23cfdfffba Implemented repr slot 2023-03-18 19:28:05 +09:00
Tomer Chachamu 8bfbfe3e46 Fix str.splitlines to recognise unicode line terminators 2023-03-18 01:10:59 +00:00
Jeong YunWon b35861005e more cspell (#4702) 2023-03-17 14:02:24 +09:00
Jeong YunWon 310a83427c cspell derive 2023-03-16 22:42:03 +09:00
Jeong YunWon 8ff947e83a Merge pull request #4677 from youknowone/arg-index
apply ArgIndex
2023-03-14 00:36:19 +09:00
Jeong YunWon 415cdb1ef9 Merge pull request #4681 from abyesilyurt/aziz/base_exc_group
Add BaseExceptionGroup
2023-03-11 02:31:50 +09:00
Jim Fasarakis-Hilliard 17c5361d43 Merge pull request #4554 from howjmay/co_stacksize
Add co_stacksize to code objects
2023-03-10 17:12:30 +02:00
Aziz Berkay Yesilyurt 1a7792e06f add BaseExceptionGroup 2023-03-10 15:30:36 +01:00
Yang Hau 95e863cb6d Add co_stacksize to code objects 2023-03-10 21:28:56 +08:00
Jeong YunWon 10ccbc6a31 Remove PyPaylod::special_retrieve 2023-03-10 16:44:47 +09:00
Jeong YunWon 0e2e7e533a ArgPrimitiveIndex for zlib 2023-03-10 16:44:47 +09:00
Jeong YunWon d71910cdc2 ArgSize for io.rs 2023-03-10 06:21:40 +09:00
Jeong YunWon 3cb7c61026 ArgIndex for builtin functions 2023-03-10 06:21:40 +09:00
Jeong YunWon 08c73444c4 ArgSize for tuple 2023-03-10 06:21:40 +09:00
Jeong YunWon e686b64ff3 ArgSize for str 2023-03-10 06:21:40 +09:00
Jeong YunWon 7d1fae001b ArgSize for list 2023-03-10 06:21:40 +09:00
Jeong YunWon f190cdb3ec ArgIndex for bytes/bytearray 2023-03-10 06:21:40 +09:00
Jeong YunWon 5a90b14099 ArgIndex for range/slice 2023-03-10 06:21:40 +09:00
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 91b57a3f28 Fix clippy warnings 2023-03-10 02:05:52 +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 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
John Pham 27233364bc Add init for array.rs (#4667) 2023-03-09 19:45:58 +09:00
Ikko Eltociear Ashimine 692c8036b7 Fix typo in number.rs
seperate -> separate
2023-03-09 16:02:21 +09:00
Jeong YunWon 5a74f08c84 Merge pull request #4654 from youknowone/pycallble
Add protocol object PyCallable
2023-03-08 05:01:31 +09:00