Commit Graph

77 Commits

Author SHA1 Message Date
Jeong YunWon
699c801354 Fix sequence index utilities not to use get_ prefix 2020-10-10 13:40:02 +09:00
Jeong YunWon
6d8c987c45 vm._len and objsequence.rs -> sliceable.rs 2020-10-10 13:39:12 +09:00
Jeong YunWon
75161a63de Merge pull request #2248 from youknowone/lease-class
lease_class as much as possible
2020-10-10 13:38:19 +09:00
Jeong YunWon
fe5767a975 lease_class as much as possible 2020-09-30 11:41:06 +09:00
Noah
dbbdd75b31 Rename rustpython_common::{cell -> lock} 2020-09-26 23:39:10 -05:00
Jeong YunWon
59db19d1ea PyClass -> PyType 2020-09-26 07:32:38 +09:00
Jeong YunWon
958fe7b194 remove cmp clone 2020-09-26 02:51:50 +09:00
Jeong YunWon
f81ad04ce3 PyString -> PyStr 2020-09-26 00:20:02 +09:00
Noah
2f03db9872 Fix some silly errors 2020-09-21 10:55:15 -05:00
Noah
fc456ac526 Finish rest of Comparable impls 2020-09-21 10:55:15 -05:00
Noah
0df1b353f5 Implement method.__eq__ 2020-09-18 23:57:37 -05:00
Kangzhi Shi
fa3fd724ac Fix array extend and improve 2020-09-15 09:10:38 +02:00
Kangzhi Shi
907dddad1e Code as suggestion 2020-09-14 16:23:14 +02:00
Noah
bd92c7eea0 Merge pull request #2196 from qingshi163/dev_array_byteswap
Implement array byteswap()
2020-09-10 17:52:20 -05:00
Kangzhi Shi
2e120238b1 Remove unnecessary into_object 2020-09-10 08:19:17 +02:00
Kangzhi Shi
1f756dbbf4 Implement array __copy__() and __deepcopy__() 2020-09-10 08:12:11 +02:00
Kangzhi Shi
4a1cda77f8 Implement array fromlist 2020-09-09 20:01:14 +02:00
Kangzhi Shi
78ab0a225a Implement array byteswap() 2020-09-09 12:03:53 +02:00
Kangzhi Shi
7b7684d83c Fix clippy 2020-09-06 19:52:01 +02:00
Kangzhi Shi
742b9d073a Impl fast path for same ArrayContentType type 2020-09-06 13:53:59 +02:00
Kangzhi Shi
48909327db Fix array compare oparation 2020-09-06 13:53:20 +02:00
Steve Shi
a5d0df25f7 Refactor with PySliceableSequenceMut trait to combine the slice operation 2020-09-06 17:08:42 +09:00
Youngchan Lee
380e5a4eae Fix errors in macros 2020-09-05 12:56:34 +09:00
Steve Shi
05b7acc95f Merge branch 'master' into dev_array_del 2020-09-04 10:25:47 +02:00
Noah
71344bbcf0 Merge pull request #2173 from qingshi163/dev3
Fix: array with float type should accept integer parameter
2020-09-02 08:32:11 -05:00
Kangzhi Shi
fa6b8208ec Implement array delitem by slice 2020-09-02 11:37:27 +02:00
Kangzhi Shi
2cd634f956 Implement array delitem 2020-09-02 08:41:35 +02:00
Kangzhi Shi
2bc343d45f Remove PyResult wrap, array.count() never fail. 2020-09-02 07:56:17 +02:00
Kangzhi Shi
5dcc8146fe Replace PyObject::new by into_simple_object 2020-09-02 07:46:11 +02:00
Kangzhi Shi
cbaa7e1c00 Implement array __imul__ 2020-08-31 21:04:00 +02:00
Kangzhi Shi
d332c1f5a2 Implement array __mul__ and __rmul__ 2020-08-31 20:40:03 +02:00
Kangzhi Shi
d26321212f Fix conflict 2020-08-31 20:11:48 +02:00
Kangzhi Shi
22be6c89c1 Implement array __iadd__ 2020-08-31 19:30:22 +02:00
Steve Shi
ff05200faf Merge branch 'master' into dev3 2020-08-31 19:28:09 +02:00
Kangzhi Shi
0d014935f0 Implement array __add__ 2020-08-31 18:14:21 +02:00
Jeong YunWon
cc25db9551 Merge pull request #2170 from qingshi163/dev
Implement array setitem by slice
2020-09-01 00:20:57 +09:00
Kangzhi Shi
1150f507e2 Fix: array with float type should accept integer parameter 2020-08-31 11:48:50 +02:00
Kangzhi Shi
5a21bc2b61 Clone only when necessary 2020-08-31 08:49:27 +02:00
Kangzhi Shi
6068ab1314 Replace map->join with Itertools::format 2020-08-30 21:32:58 +02:00
Kangzhi Shi
187afa4e4a Implement array __repr__ 2020-08-30 19:28:26 +02:00
Kangzhi Shi
ff7c8c94f7 fix rustfmt 2020-08-30 17:17:17 +02:00
Kangzhi Shi
1922725af5 Implement array setitem by slice 2020-08-30 16:51:52 +02:00
Steve Shi
6073151965 Implement array getitem by slice 2020-08-29 00:30:09 +09:00
Jeong YunWon
c9c1ac9532 Give module names for classes 2020-08-23 18:24:46 +09:00
Jeong YunWon
bd3d4cfdb2 earlier returning for error 2020-08-23 06:54:25 +09:00
Jeong YunWon
ab112a9adf exactly_one 2020-08-23 06:52:40 +09:00
Jeong YunWon
f497c99ec7 Give correct names to types 2020-08-22 06:32:39 +09:00
ugaemi
1d554eb065 Fix fmt 2020-08-16 03:25:37 +09:00
ugaemi
b1eb20275d Add crate BorrowValue 2020-08-16 03:19:12 +09:00
ugaemi
6abb67398d Modify return type 2020-08-16 02:59:40 +09:00