Noa
c585678ec9
Merge format and literal back into this repo (and update malachite) ( #5618 )
...
* Merge format and literal back into this repo
* Update format and literal to work
* Update malachite
* Remove RustPython/Parser from Cargo.toml
2025-03-23 09:27:13 +09:00
Ashwin Naren
b870b0e1b5
2024 edition formatting
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-26 11:48:22 -08:00
Shubham Patil
38593fbd85
Check operand types in bool or, and, xor to be PyInt ( #5461 )
...
* Added Tests for Bitwise or, and, xor type error
* Sync binary operator order comment with actual implementation
* Check operand types in bool or, and, xor to be PyInt
PyNumber methods are expected to type check both arguments.
Dispatch is not done by inverting parameter order for __r<op>__ (example __ror__) when calls are handled via PyNumberMethods
2024-12-30 16:44:27 +09:00
Steve Shi
de0d323ad3
change dependency from num-bigint to malachite-bigint ( #4952 )
2023-06-08 14:28:39 +09:00
Micha Reiser
7a6000d181
Use format and cformat from rustpython-literal ( #4968 )
...
* Use `format` and `cformat` from `rustpython-literal`
* Remove unused dependencies, use `rustpython-format`
2023-05-13 02:58:02 +09:00
Christopher Gambrell
fa79055821
Format d bool support ( #4948 )
2023-04-30 16:29:04 +09:00
Kangzhi Shi
d6acd2ee7d
refactor PyNumberBinaryFunc
2023-03-21 21:27:51 +02:00
Jeong YunWon
7b99df6c48
PyPayload::class takes ctx instead of vm
2023-03-20 21:03:40 +09:00
Jeong YunWon
f314328294
lifetime bounded TryFromBorrwoedObject
2023-03-19 04:57:06 +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
Jeong YunWon
788ccffb2b
Make PyNumberMethods static
2023-03-10 01:17:28 +09:00
Zhiyan Xiao
8a42a68a4f
Temp: Implement Number Protocol for PyBool
2023-03-09 23:41:57 +09:00
Jeong YunWon
b60271a6cf
deprecate vm.invoke
2023-03-08 01:35:30 +09:00
Jeong YunWon
ab9573f108
object.__format__ the right way
2023-03-03 03:29:50 +09:00
Jeong YunWon
d935fbc445
Fix nightly clippy warnings
2022-12-05 12:18:16 +09:00
gilteun
227034d36b
remove most of old __doc__ remarks
2022-10-17 09:00:01 +09:00
Jeong Yunwon
055c5cfb97
pyimpl -> pyclass
2022-08-05 01:18:10 +09:00
Jeong Yunwon
9b2a9d2377
TypeZoo uses &'static Py<PyType>
2022-05-27 10:35:01 +09:00
Jeong Yunwon
9db69d628f
{Type,Exception}Zoo holds static ref
2022-05-27 10:23:33 +09:00
Jeong Yunwon
fb52694e41
PyAttributes key is PyStrInterned
2022-05-23 09:03:13 +09:00
Jeong Yunwon
bbc31364bb
PyInterned
2022-05-22 14:19:11 +09:00
Jeong Yunwon
6e571946a0
introduce PyStrInterned
2022-05-17 06:16:35 +09:00
Jeong Yunwon
b65eb874f7
filename consistency
2022-04-23 09:47:53 +09:00