Shahar Naveh
694fe50241
Use const fn where possible ( #5894 )
2025-07-04 22:26:20 +09:00
Shahar Naveh
69545c0798
Use Self where possible ( #5892 )
2025-07-04 10:08:43 +09:00
Shahar Naveh
8cac4335b4
Constify functions & General nitpicks ( #5858 )
...
* General cleanups
* Add some newlines
* Use bitlag match
* More constify
* Don't convert to str twice
* constify more
* Use match directly instead of if & match!
* Constify more
* Constify more
* more consts
* Constify more
* Constify more
* Don't use bitflags_match macro
2025-06-28 23:08:30 +09:00
Jeong YunWon
993ea8923c
Rename members
2025-06-27 12:32:59 +09:00
Shahar Naveh
1ae07813ee
Remove redundent to_owned() and to_string() calls ( #5836 )
...
* Remove redundent String conversion for errors
* cargo fmt
2025-06-25 23:42:26 +09:00
Jeong YunWon
c824016301
Fix UnpackIterator constructor
2025-06-22 18:11:30 +09:00
Jeong, YunWon
3a54105e2c
Fix struct tests ( #5813 )
2025-06-22 09:58:43 +09:00
Ashwin Naren
5c854fc690
clear out warnings
2025-04-04 21:46:28 +09:00
Noa
0b35946972
Make FromArgs default field take an expression, not a string literal
2025-03-31 11:48:06 +09:00
Noa
ba1b5811ee
Update encoding to use wtf8
2025-03-25 19:05:11 -05:00
Noa
cace112b1a
Allow surrogates in str
2025-03-25 19:05:11 -05:00
Ashwin Naren
b870b0e1b5
2024 edition formatting
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-26 11:48:22 -08:00
Jeong YunWon
9f58921a6f
Rename IterNextIterable -> SelfIter by following CPython
2023-04-30 03:54:32 +09:00
Jeong YunWon
9b9dd1100a
Add missing with(Iterable)
2023-04-30 03:54:32 +09:00
Jeong YunWon
e2ccb48463
Remove Traverse from FromArgs
2023-04-28 13:27:57 +09:00
discord9
94bdb6b97a
feature: PyTraverse derive macro for traverse object's childrens(like CPython's tp_traverse) ( #4872 )
2023-04-23 21:43:49 +09:00
Jeong YunWon
7b99df6c48
PyPayload::class takes ctx instead of vm
2023-03-20 21:03:40 +09:00
Jeong YunWon
d935fbc445
Fix nightly clippy warnings
2022-12-05 12:18:16 +09:00
Jeong YunWon
d94f638784
Fix nightly clippy warnings
2022-10-16 02:38:50 +09:00
Jeong YunWon
e002191a48
pyproperty -> pygetset
...
Though it actually create a getset descriptor,
we didn't change the name because its concept was a property for writers.
Now we have `pymember`, another property-like descriptor. So naming them under
same level would be less confusing instead of telling everybody
"it is a getset but we call it pyproperty"
2022-09-18 14:18:49 +09:00
Jeong Yunwon
055c5cfb97
pyimpl -> pyclass
2022-08-05 01:18:10 +09:00
Jeong Yunwon
e52a5f99f3
remove PyPayload::into_pyresult_with_type
2022-04-23 09:47:53 +09:00
Jeong Yunwon
5a606647c0
PyObjectView -> Py
2022-04-23 05:21:57 +09:00
Jeong Yunwon
66b6a06997
PyValue -> PyPayload
2022-04-23 05:20:31 +09:00
Jeong Yunwon
fee3bf2722
AsPyObject -> AsObject because fn as_object
2022-04-18 07:19:35 +09:00
Jeong Yunwon
aa76a34963
merge TypeProtocol in AsPyObject
2022-04-17 19:26:10 +09:00
Jeong Yunwon
be9aaf71a6
Move _struct module to stdlib
2022-04-17 02:00:07 +09:00