Commit Graph

6345 Commits

Author SHA1 Message Date
David Marques
442e70df55 Changed the drain into into_iter on types.rs 2022-04-26 07:29:36 +02:00
djrmarques
53208182f8 Changed PyAttributes type to IndexMap 2022-04-25 15:04:33 +09:00
Jeong Yunwon
a7135024a5 &PyTuple and &PyTupleRef works like &[PyObjectRef] 2022-04-24 12:26:48 +09:00
Jeong Yunwon
dd3d3ef55b Replace as_slice of trait impl with AsRef<[T]> 2022-04-24 12:26:48 +09:00
Moreal
fcb6c3e28f Refactor __format__ calling 2022-04-24 05:10:22 +09:00
Jeong Yunwon
927c206568 move slice utilities out of slice module 2022-04-23 20:59:04 +09:00
Jeong Yunwon
c4e0650ac7 VersionInfo to sys.rs 2022-04-23 20:49:31 +09:00
Jeong Yunwon
0535077631 either is a function utility 2022-04-23 20:49:31 +09:00
Jeong Yunwon
10c90f78b5 no more py* prefix for modules 2022-04-23 09:50:19 +09:00
Jeong Yunwon
b65eb874f7 filename consistency 2022-04-23 09:47:53 +09:00
Jeong Yunwon
9a283a2f88 vm::prelude 2022-04-23 09:47:53 +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
082f4bdc59 PyMethod is internal concept of VirtualMachine 2022-04-23 09:47:53 +09:00
Jeong Yunwon
8d75d18597 vm::object::payload 2022-04-23 09:10:11 +09:00
Jeong Yunwon
a05a09390e pyobject to object 2022-04-23 08:57:30 +09:00
Jeong Yunwon
c564a18331 Allow #[pyattr] on #[pyfunction] 2022-04-23 08:06:18 +09:00
Jeong Yunwon
ca84d728c2 sys.unraisablehook 2022-04-23 08:06:17 +09:00
Jeong Yunwon
a63ad27cd4 PyContext is not a python object 2022-04-23 07:56:21 +09:00
Jeong Yunwon
ab7d921772 PySettings is not a python object 2022-04-23 07:56:20 +09:00
Jeong Yunwon
946fc93170 vm::PyContext 2022-04-23 07:56:20 +09:00
Jeong Yunwon
1d3ec86ff6 vm::compile 2022-04-23 07:56:20 +09:00
Jeong Yunwon
0294473704 ReprGuard to recursion 2022-04-23 07:56:20 +09:00
Jeong Yunwon
f959ab9159 threaded virtual machine 2022-04-23 07:56:20 +09:00
Jeong Yunwon
7f5d683af4 vm breakdown 2022-04-23 07:30:26 +09:00
Jeong Yunwon
bb19b7c43a Move string intern to PyContext 2022-04-23 06:06:53 +09:00
Jeong Yunwon
c81cb4aa11 impl Clone for PyRef<T> 2022-04-23 06:05:31 +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
71acc6c544 Documentation for the names 2022-04-23 05:17:35 +09:00
Jeong Yunwon
d958d91501 PyObjectWeak is PyRef<PyWeak> 2022-04-23 05:17:34 +09:00
Jeong Yunwon
c2bb72f0b6 PyObjectWeak as type alias 2022-04-23 05:08:17 +09:00
sum12
5fdf62a6b9 Check for PyAsyncGen when calling aiter 2022-04-21 09:49:20 +02:00
sum12
8455c741a6 implement aiter
the caller is expected to make sure that the passed in object does in
fact supports the protocol

relates #3609
2022-04-21 09:48:01 +02:00
Jeong Yunwon
6ed42f7621 VersionInfo::make_class() with use 2022-04-20 03:25:02 +09:00
Jeong Yunwon
9f2540bb91 Remove manual make_class 2022-04-20 02:07:42 +09:00
Jeong Yunwon
41000c4f54 Use array for PyStructSequence 2022-04-19 15:32:20 +09:00
Jeong Yunwon
c35b3a653b hide PyStructSequence from crate root 2022-04-19 15:31:33 +09:00
Jeong Yunwon
f19143f379 skip type check 2022-04-19 15:31:33 +09:00
Jeong Yunwon
6de62d937e module for PyStructSequence 2022-04-19 15:31:30 +09:00
Jeong Yunwon
4f531d1c6b remove FIELD_LEN 2022-04-19 15:14:17 +09:00
Jeong Yunwon
bf18e281ed derive macro for TryFromObject for PyStructSequence 2022-04-19 15:08:42 +09:00
Jeong Yunwon
a86f37e086 split set_str_attr 2022-04-19 05:10:05 +09:00
Jeong Yunwon
554b2b9f48 vm/src/function/builtin.rs 2022-04-19 01:25:36 +09:00
Jeong Yunwon
abe3d6bc8e vm/src/function/argument.rs 2022-04-19 01:19:16 +09:00
Jeong Yunwon
af84587543 vm::function::{argument => protocol}.rs 2022-04-19 01:07:38 +09:00
Jeong Yunwon
860d7e1562 inline and cold 2022-04-19 01:00:15 +09:00
Jeong Yunwon
c4b80b3a24 IntoObject::into_object() and PyValue::into_pyobject(vm) 2022-04-19 00:38:18 +09:00
Jeong Yunwon
f8f4392cf3 Fix wasm32 build 2022-04-18 21:14:38 +09:00
Jeong Yunwon
fee3bf2722 AsPyObject -> AsObject because fn as_object 2022-04-18 07:19:35 +09:00