Commit Graph

91 Commits

Author SHA1 Message Date
Jeong YunWon
d935fbc445 Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
Steve Shi
2c5cacf9f2 Refactor Mapping Protocol (#4222) 2022-10-17 09:51:22 +09:00
Steve Shi
30aeb8bee5 Introduce PyAtomicRef and impl for PyObject.typ (#3828)
* introduce PyAtomicRef

* refactor PyObject.typ use PyAtomicRef

* add documents

* add swap_to_temporary_refs

* replace AtomicCell with PyAtomic

* fix name conflict
2022-10-15 21:53:12 +02: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
27040c01b0 Fix nightly clippy 2022-08-16 09:02:42 +09:00
Jeong Yunwon
055c5cfb97 pyimpl -> pyclass 2022-08-05 01:18:10 +09:00
Jeong Yunwon
84f5aa93b0 Refactor repetive optional range pattern to OptionalRangeArgs 2022-07-22 03:11:38 +09:00
Daeun Lee
e6452d86d0 update array.index for optional range 2022-07-21 21:12:21 +09:00
siontama
2bf61aa60a Refactor: delete unnecessary clones 2022-07-16 17:40:40 +09:00
siontama
cdd937cebb Refactor: convert indent from tab to space 2022-07-16 17:20:13 +09:00
siontama
2417d3e813 Feat: impl PyArrayIter.setstate 2022-07-16 17:19:14 +09:00
Sion Kang
50aebefa4c Update stdlib/src/array.rs
Co-authored-by: Snowapril <sinjihng@gmail.com>
2022-07-16 16:53:52 +09:00
siontama
1a526aff47 Fix: Modify iter next to be implemented only internal 2022-07-16 16:42:00 +09:00
hyezzang
821f3e7aab fix position value to struct value 2022-07-13 18:04:17 +09:00
hyezzang
0f24b18312 Add arrayiter __reduce__
Co-authored-by: Yaminyam <siontama@gmail.com>
2022-07-13 18:04:06 +09:00
siontama
b190a0cbf3 refactor: change PyArrayIter name
* Change `PyArrayIter` struct to `PyArrayIterator`
2022-07-13 14:07:56 +09:00
Noa
4771ab6383 Switch then(|| foo) to then_some(foo) 2022-07-07 11:19:55 -04:00
Jeong Yunwon
38b1f5932c SequenceIndexOp 2022-06-25 01:18:35 +09:00
gogim1
19f3121f88 rename for name consistency 2022-06-19 18:06:18 +08:00
gogim1
9c8ace592d rename for name consistency 2022-06-19 17:11:20 +08:00
Jeong YunWon
f624e8e78b Merge pull request #3785 from youknowone/exact-size-operator
PyExactSizeIterator
2022-06-13 23:44:49 +09:00
Jeong Yunwon
4f272eea85 PyExactSizeIterator 2022-06-13 22:19:24 +09:00
JaeHyung Jang
9757c8244f Setitem error have type name (#3770) 2022-06-11 16:48:07 +09:00
Jeong Yunwon
d05645ea58 update syn-ext 2022-05-28 01:41:55 +09:00
Jeong Yunwon
9b2a9d2377 TypeZoo uses &'static Py<PyType> 2022-05-27 10:35:01 +09:00
Jeong Yunwon
bbc31364bb PyInterned 2022-05-22 14:19:11 +09:00
Lithium07z
5263eca3a8 Add array.ArrayType 2022-05-22 12:08:51 +09:00
Jeong Yunwon
6e571946a0 introduce PyStrInterned 2022-05-17 06:16:35 +09:00
rebunto
392a9476a7 Changed pyclass name of PyArray and PyArrayIter #3612 2022-05-04 14:08:34 +09:00
Jeong Yunwon
84e2b52240 Deref for ArgIntoFloat 2022-04-29 10:47:59 +09:00
Jeong Yunwon
bb19b7c43a Move string intern to PyContext 2022-04-23 06:06: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
c4b80b3a24 IntoObject::into_object() and PyValue::into_pyobject(vm) 2022-04-19 00:38:18 +09:00
Jeong Yunwon
fee3bf2722 AsPyObject -> AsObject because fn as_object 2022-04-18 07:19:35 +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
75e589cbc1 isinstance -> fast_isinstance 2022-04-17 20:32:34 +09:00
Jeong Yunwon
29ba8956a9 Remove TypeProtocol::clone_class() 2022-04-17 20:10:24 +09:00
Jeong Yunwon
aa76a34963 merge TypeProtocol in AsPyObject 2022-04-17 19:26:10 +09:00
Jeong Yunwon
625f8675ae Introduce AsPyObject to replace IdProtocol 2022-04-17 10:32:01 +09:00
Jeong Yunwon
86a8831124 vm::funciton::arithmetic 2022-04-16 00:49:05 +09:00
Jeong Yunwon
6357a1acbe clean up imports and useless allow attributes 2022-04-15 23:58:20 +09:00
Kangzhi Shi
7b8c4091b5 fix hang on __index__ 2022-03-12 16:12:34 +09:00
Kangzhi Shi
6b17fa1d3d fix rebase 2022-03-12 16:12:12 +09:00
Kangzhi Shi
e3247dae7a refactor use SliceableSequence for array 2022-03-12 16:12:12 +09:00
Kangzhi Shi
01a8e01ec8 refactor BufferResizeGuard 2022-03-12 16:12:12 +09:00
Kangzhi Shi
4be3c4f598 refactor PySliceableSequence -> SlicableSequenceOp 2022-03-12 16:12:12 +09:00
Kangzhi Shi
b4907f0703 refactor sliceable incomplete sequence protocol for list 2022-03-12 16:12:12 +09:00
Kangzhi Shi
6a996b04c8 move obj downcast to AsMapping 2021-12-01 20:16:18 +02:00