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
d7113e11db
Fix more cspell warnings
2025-04-04 21:45:03 +09:00
Jeong YunWon
7ac61f3840
fix cspell warnings
2025-04-04 16:15:54 +09:00
Noa
0b35946972
Make FromArgs default field take an expression, not a string literal
2025-03-31 11:48:06 +09:00
Jeong YunWon
ec09599d84
Remoce once_cell::Lazy usage
2025-03-26 18:22:23 +09:00
Noa
b36b32bfe8
Make re wtf8-compatible
2025-03-25 19:05:12 -05:00
Noa
6daee1b00e
Warn on elided_lifetimes_in_paths
2025-03-01 13:49:33 +09: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
6eed8f42c7
split vm.import and vm.import_from ( #5212 )
2024-04-08 00:07:38 +09:00
Jeong YunWon
90ab0e33a2
apply rustfmt
2024-04-06 19:15:15 +09:00
Jeong, YunWon
34ffa93945
Remove commented out code
2024-03-30 18:49:33 +09:00
Jeong YunWon
f5fbb5b06f
replace sre-engine to rustpython-sre_engine
2024-03-22 14:59:19 +09:00
Kangzhi Shi
d9375b9fe1
impl re.template(),
...
template_compile template_expand subx
2024-03-22 14:59:19 +09:00
Charles Hubain
96a949189d
Implemented tp_repr slots for more types
2023-04-06 00:42:01 +09:00
Jeong YunWon
7b99df6c48
PyPayload::class takes ctx instead of vm
2023-03-20 21:03:40 +09:00
Jeong YunWon
12c96d06e4
Remove useless and_then
2023-03-18 22:10:25 +09:00
Jeong YunWon
b60271a6cf
deprecate vm.invoke
2023-03-08 01:35:30 +09:00
Jeong YunWon
66d9514e12
remove vm.is_callable
2023-03-07 19:28:21 +09:00
Jeong YunWon
d935fbc445
Fix nightly clippy warnings
2022-12-05 12:18:16 +09:00
Discord9
754b28c086
refactor: use Lazy for static
2022-11-24 12:17:07 +08:00
Steve Shi
2c5cacf9f2
Refactor Mapping Protocol ( #4222 )
2022-10-17 09:51:22 +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
Kangzhi Shi
b5fa915708
refactor to update sre-engine to 0.4.1
2022-08-18 03:50:37 +09:00
Kangzhi Shi
ed30c5d84d
refactor to update sre-engine to 0.4.0
2022-08-18 03:49:10 +09:00
Kangzhi Shi
8bdbc99216
refactor to bump sre-engine to v0.3.0
2022-08-07 15:48:37 +09:00
Jeong Yunwon
055c5cfb97
pyimpl -> pyclass
2022-08-05 01:18:10 +09:00
Jeong YunWon
2d1158b271
remove vm.try_index
2022-07-24 15:05:29 +09:00
Jeong Yunwon
d05645ea58
update syn-ext
2022-05-28 01:41:55 +09:00
Jeong Yunwon
fb52694e41
PyAttributes key is PyStrInterned
2022-05-23 09:03:13 +09:00
Jeong Yunwon
8a2cd2ba08
Refactor DictKey - Remove &PyObject / PyObjectRef
2022-05-16 18:14:19 +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
c4b80b3a24
IntoObject::into_object() and PyValue::into_pyobject(vm)
2022-04-19 00:38:18 +09:00
Jeong Yunwon
e356d51af1
move ToPy* to convert
2022-04-18 07:17:24 +09:00
Jeong Yunwon
f6d70c8176
Into{PyObject,PyException,Pyresult} -> To{..}
...
The naming convention was wrong
2022-04-18 06:04:47 +09:00
Jeong Yunwon
828c28ebb8
Replace vm.extract_elements with TryFromBorrowedObject
2022-04-17 06:09:45 +09:00
Jeong Yunwon
86a8831124
vm::funciton::arithmetic
2022-04-16 00:49:05 +09:00
Kangzhi Shi
c6ee563088
fix item protocol use sequence protocol
2022-03-12 16:12:12 +09:00
Kangzhi Shi
ca4e8f50e8
refactor ItemProtocol -> Object Protocol
2021-11-27 13:00:37 +02:00
Steve Shi and Jeong YunWon
742ea0c4fa
Reimpl Buffer Protocol and memoryview support ndarray with shape, stride and suboffset ( #3340 )
...
* Fix buffer protocol and memoryview
* Fix io and array the right way to use buffer protocol
* fix rebase
* fix memoryview and introduce VecBuffer
* fix deadlock
* fix memoryview avoid double release buffer
* impl ndim buffer support
* first implement nd array for buffer and memoryview
* fix slice adjust_indices
* fix adjust_indices introduct SaturatedSliceIterator
* fix memoryview cmp
* fix adjust_indices positive_order
* fix bug mark passed test
* fix clippy
* fix set_item_slice deadlock, optimize buffer
* Delete @test_113974_tmp
* Remove vec_buffer_type
* rusty names
* impl memoryview multi index
* add comments
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
2021-11-13 07:17:11 +02:00
Moreal
bc05b98ca6
Relocate vm.to_repr to object.repr
2021-10-23 21:16:28 +09:00
snowapril
32ba09c407
add missing __class_getitem__ in several types
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-22 18:43:15 +09:00
Jeong YunWon
f76877347a
Py -> PyObjectView
2021-10-21 18:04:13 +09:00
Jeong YunWon
b759808736
PyObj -> PyObject
2021-10-21 17:55:29 +09:00
Noa
8dd18d97be
PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T>
2021-10-21 16:49:01 +09:00
ChJR
0d32e1ae16
Relocate vm._hash to obj.hash
2021-10-20 02:10:36 +09:00
Jeong YunWon
997f85ff54
Less PyListRef
2021-10-18 05:15:56 +09:00
jfh
7bc10da154
Relocate vm.get_attribute to obj.get_attr.
2021-10-17 10:30:21 +03:00
Jeong YunWon
7cae6d24fe
Refactor PyType creation
2021-10-14 13:37:45 +09:00