531 Commits

Author SHA1 Message Date
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
Padraic Fanning
88e0f13993 Fix unnecessary_lazy_evaluations Clippy warning 2022-02-25 19:33:52 -05:00
Padraic Fanning
19d4a2b17b Add statistics accelerator module 2022-02-12 23:27:36 -05:00
snowapril
04306973ed Fix getrandbits to check negative
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
Padraic Fanning
307fac7802 Draft methods for Token object 2022-01-29 20:17:37 -05:00
Padraic Fanning
667680945c Draft methods for Context object 2022-01-29 20:17:37 -05:00
Padraic Fanning
4d2486e820 Fix clippy warnings 2022-01-29 20:17:36 -05:00
Padraic Fanning
bb8ba8b40a Draft methods and fields for ContextVar
Things are going to get worse before they get better.
2022-01-29 20:17:36 -05:00
Padraic Fanning
4f979a3edf Add test_context from CPython 3.8 2022-01-29 20:17:35 -05:00
Padraic Fanning
0455f0f812 Add contextvars Rust module 2022-01-29 20:17:35 -05:00
David CARLIER
44222e562e fcntl module update proposal apple and freebsd specific flags. 2022-01-23 23:29:02 +00:00
Noa
c97e238fd0 Merge pull request #3486 from afpro/main
fix android ssl import error (PyBaseExceptionRef/VirtualMachine/conve…
2022-01-22 01:51:16 -06:00
Padraic Fanning
0d979d8b3e Allow random.getrandbits(0) 2022-01-16 20:23:40 -05:00