Commit Graph

193 Commits

Author SHA1 Message Date
Jeong Yunwon
a7135024a5 &PyTuple and &PyTupleRef works like &[PyObjectRef] 2022-04-24 12:26:48 +09:00
Jeong Yunwon
a7ced8113b random.seed with unwrap_or_default 2022-04-24 12:26:48 +09:00
Jeong Yunwon
0535077631 either is a function utility 2022-04-23 20:49:31 +09:00
Jeong Yunwon
f220394ce9 vm::{pyclass => class} 2022-04-23 09:47:53 +09:00
Jeong Yunwon
e52a5f99f3 remove PyPayload::into_pyresult_with_type 2022-04-23 09:47:53 +09:00
Jeong Yunwon
a63ad27cd4 PyContext is not a python object 2022-04-23 07:56:21 +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
d958d91501 PyObjectWeak is PyRef<PyWeak> 2022-04-23 05:17:34 +09:00
Nixon Enraght-Moony
639a4fe6b6 Add _statistics module containing _normal_dist_inv_cd
Closes #3251
2022-04-20 17:18:31 +09:00
Jeong YunWon
047bab998b Merge pull request #2950 from fanninpm/contextvars
Add contextvars from CPython 3.8
2022-04-20 16:54:00 +09:00
Jeong Yunwon
9f2540bb91 Remove manual make_class 2022-04-20 02:07:42 +09:00
Jeong YunWon
16cedb1624 Merge pull request #3613 from youknowone/pystructseq-fromobj
derive(TryIntoPyStructSequence)
2022-04-19 16:20:35 +09:00
Jeong Yunwon
c35b3a653b hide PyStructSequence from crate root 2022-04-19 15:31:33 +09:00
Jeong Yunwon
1b5348a7f4 Fix _socket.socket naming 2022-04-19 15:07:04 +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
6121195548 Replace IntoPyRef with VirtualMachine::new_pyref 2022-04-18 07:17:24 +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
a22341787a remove socket.IPPROTO_MAX 2022-04-18 00:23:23 +09:00
Jeong Yunwon
965c3157c8 Upgrade libraries 2022-04-18 00:09:22 +09:00
Jeong Yunwon
15cb57526e flexible vm.invoke 2022-04-17 21:09:52 +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
828c28ebb8 Replace vm.extract_elements with TryFromBorrowedObject 2022-04-17 06:09:45 +09:00
Jeong Yunwon
60e0e5f95d Refactor try_value_with 2022-04-17 06:09:45 +09:00
Jeong Yunwon
be9aaf71a6 Move _struct module to stdlib 2022-04-17 02:00:07 +09:00
Jeong Yunwon
86a8831124 vm::funciton::arithmetic 2022-04-16 00:49:05 +09:00
Jeong Yunwon
475d04c67e IntoPyRef to vm::function 2022-04-16 00:46:37 +09:00
Jeong Yunwon
a5b36e1937 split pyobject.rs 2022-04-16 00:45:19 +09:00
Jeong Yunwon
6357a1acbe clean up imports and useless allow attributes 2022-04-15 23:58:20 +09:00
Jeong Yunwon
15b4205d1a use unsigned_abs() 2022-04-15 20:24:55 +09:00
Jeong Yunwon
3629ce5cd7 rename non-protocol PySequence to ArgSequence to avoid confusion 2022-04-14 03:26:38 +09:00
Jeong YunWon
79b3633654 Merge pull request #3596 from hwi-ya/add_constant
add missing constants
2022-04-10 14:21:35 +09:00
himmelmin
b0fa2d2b62 Add select.error (#3599) 2022-04-10 13:35:07 +09:00
hwi-ya
dcbaecab9a add missing constants 2022-04-10 10:20:04 +09:00
jeon-yongjun
aa8a3afb81 Add missing constants 2022-04-09 21:00:32 +09:00
himmelmin
735856fabc Add missing constants 2022-04-09 19:29:51 +09:00
simbajisu
6117d3ab5a add missing constants 2022-04-09 17:07:45 +09:00
gilteunchoi
7800853d1b fix arguments handling of compress and decompress functions
Signed-off-by: gilteunchoi <gilteunchoi@gmail.com>
2022-03-13 18:04:24 +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