Commit Graph

55 Commits

Author SHA1 Message Date
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
ugaemi
620e4b93ea Add __ne__ for array, bytearray 2020-08-16 02:59:15 +09:00
Jeong YunWon
7b6ab8da72 Replace vm.new_{int,str,bool} with vm.new_pyobj 2020-08-10 02:16:29 +09:00
Jeong YunWon
ab37e455f3 BorrowValue for PyString 2020-08-09 14:14:55 +09:00
Jeong YunWon
a77e78d3e1 BorrowValue for bytes 2020-08-09 13:44:32 +09:00
Ben Lewis
dc994e3c6f Accept array as byte like/buffer. 2020-08-08 08:50:40 +12:00
Jeong YunWon
61455ce261 Separate IntoPyObject and IntoPyResult 2020-08-04 22:59:34 +09:00
clemado1
123eefd87f Allow None parameter for remove, index, count method of array 2020-07-30 10:36:53 +09:00
Noah
39303f0567 Transition more files to use PyMutex/PyRwLock 2020-07-25 15:22:03 -04:00
clemado1
53a116f9f1 Implement remove method of array 2020-07-19 16:31:07 +09:00
qodot
72a78ff542 Implement lt, le, gt, ge method of array 2020-07-16 22:58:54 +09:00
Noah
ebab829f60 Switch to using parking_lot::Mutex instead of std::sync::Mutex 2020-07-04 22:58:18 -05:00
Aviv Palivoda
fb5862da91 Remove ThreadSafe trait 2020-05-16 13:58:10 +03:00
Aviv Palivoda
f448654229 Make PyArrayIter ThreadSafe 2020-05-09 10:45:12 +03:00
Aviv Palivoda
094fc9d8a8 Make PyArray ThreadSafe 2020-04-11 15:39:59 +03:00
Jeong YunWon
3c96442068 Fix array insert, Add array setitem 2020-03-08 12:59:23 +09:00
Jeong YunWon
0eaf3731e9 memoryview/array support for int() 2020-02-29 11:32:29 +09:00
Jeong YunWon
6ddb690e09 Remove _vm parameter when it is not required 2020-02-06 11:07:51 +09:00
Jeong YunWon
7fd92fcc71 Py_TPFLAGS_BASETYPE 2020-01-30 16:32:09 +09:00
Jeong YunWon
8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
coolreader18
8746f29d3b Fix sre_compile._bytes_to_code 2019-10-02 22:09:31 -05:00
Noah
d22cac2dd8 Rename new slots to tp_new 2019-09-29 23:14:37 -05:00
coolreader18
c46b5b50bd Fix weirdness with type.__new__()/type()/metaclass.__new__() 2019-09-29 23:14:31 -05:00