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
|
aa76a34963
|
merge TypeProtocol in AsPyObject
|
2022-04-17 19:26:10 +09:00 |
|
Jeong Yunwon
|
935bfcda86
|
inline for object pointer operations
|
2022-04-17 10:37:53 +09:00 |
|
Jeong Yunwon
|
625f8675ae
|
Introduce AsPyObject to replace IdProtocol
|
2022-04-17 10:32:01 +09:00 |
|
Jeong Yunwon
|
dca59e9832
|
Add borrow for wrapping types
|
2022-04-17 09:40:39 +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 |
|
Jeong Yunwon
|
3629ce5cd7
|
rename non-protocol PySequence to ArgSequence to avoid confusion
|
2022-04-14 03:26:38 +09:00 |
|
Kangzhi Shi
|
7bc2d0e1c0
|
fix PySequenceIterator to 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
|
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 |
|
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 |
|
Jeong YunWon
|
7cae6d24fe
|
Refactor PyType creation
|
2021-10-14 13:37:45 +09:00 |
|
Jeong YunWon
|
c83eb12d0a
|
Merge pull request #3258 from youknowone/ascii-buffer
ArgAsciiBuffer
|
2021-10-09 16:27:47 +09:00 |
|
Jeong YunWon
|
4fb1cdb316
|
PyObjectWrap
|
2021-10-08 01:56:00 +09:00 |
|
Ben Lewis
|
48e5feb994
|
Add AsciiBytesLike to accept both an ascii string or a buffer.
|
2021-10-07 23:23:32 +09:00 |
|
Jeong YunWon
|
04e25e8d2d
|
vm/function/{byteslike -> buffer}.rs
those types are buffer utilities
byteslike is one of them
|
2021-10-07 23:19:37 +09:00 |
|
Jeong YunWon
|
6ba322f261
|
clean up byteslike api
|
2021-10-07 23:18:35 +09:00 |
|
jfh
|
c0420721e0
|
Rename from ArgTypeLike to ArgIntoType, numlike to number.
|
2021-10-07 15:30:57 +03:00 |
|
jfh
|
a29f9452b8
|
Add documentation for Arg types.
|
2021-10-07 14:12:47 +03:00 |
|
jfh
|
b2a2238566
|
Add ArgBoolLike.
|
2021-10-07 12:56:01 +03:00 |
|
jfh
|
856f77fb77
|
Add ArgFloatLike.
|
2021-10-07 12:34:30 +03:00 |
|
jfh
|
acfdf9ceaa
|
Move try_complex into PyObjectRef
|
2021-10-07 12:23:12 +03:00 |
|
jfh
|
7387324f59
|
Add ArgComplexLike
|
2021-10-07 12:06:26 +03:00 |
|
Jeong YunWon
|
0c56761be1
|
flexible PyIterIter and PyIter::into_iter
|
2021-10-04 04:53:46 +09:00 |
|
Jeong YunWon
|
d0615a4ea3
|
PyIter::iter
|
2021-10-04 04:53:46 +09:00 |
|
Jeong YunWon
|
d1e9ac85d8
|
move funciton::PyIterator -> protocol::PyIterIter
|
2021-10-04 04:53:46 +09:00 |
|
Jeong YunWon
|
31549f8059
|
PyIterator holds PyIter
|
2021-10-04 04:53:46 +09:00 |
|
Jeong YunWon
|
910d5e7d11
|
move iterator::length_hint to vm
|
2021-10-04 04:53:46 +09:00 |
|
Jeong YunWon
|
ff1129adb7
|
PyIterReturn for StopIteration
Same as ArithmaticValue for NotImplemented
|
2021-10-01 22:33:57 +09:00 |
|
Jeong YunWon
|
3273be1a6b
|
PyIter protocol
|
2021-09-30 05:16:10 +09:00 |
|
Jeong YunWon
|
495ba77ae5
|
move vm/src/{byteslike.rs -> function/byteslike.rs}
|
2021-09-29 02:28:43 +09:00 |
|
Jeong YunWon
|
ffef73c1d7
|
split Arg{Callble,Iterable} from pyobject.rs
|
2021-09-22 21:01:44 +09:00 |
|
Noah
|
3ff3a2c0a1
|
Move function/mod.rs back to function.rs
|
2020-11-27 00:49:11 -06:00 |
|
Noah
|
8ff7a528a2
|
Replace FuncArgs.insert with prepend_arg, optimize check_signals
|
2020-11-24 11:41:36 -06:00 |
|
carbotaniuman
|
e572371a46
|
Fix behavior of pow builtin
|
2020-11-17 12:52:27 -06:00 |
|