Jeong YunWon
a19efa21ce
Merge pull request #3662 from Snowapril/object_protocol
...
Relocate `PyObject_Generic*` into object protocol
2022-04-26 21:29:26 +09:00
snowapril
df666dd217
Remove duplicate generic_getattr in builtins::object
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 20:51:04 +09:00
snowapril
09f7d92cb9
Relocate generic_getattr/opt from vm to object protocol
...
According to cpython docs, generic_getattr/opt is object protocol.
It is more appropriate to locate in protocol/object.rs than vm
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 20:51:02 +09:00
snowapril
3b7bb5cb61
Relocate generic_setattr into object protocol
...
As generic_setattr is included in object protocol, it seems more
appropriate to relocate.
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 19:51:30 +09:00
Jeong YunWon
94d377792f
Merge pull request #3661 from djrmarques/main
...
Changed the drain into into_iter on types.rs
2022-04-26 15:49:29 +09:00
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
91b5a18286
Merge pull request #3659 from youknowone/pytuple-as-slice
...
PyTuple deref to [PyObjectRef]
2022-04-24 13:54:20 +09:00
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
dd3d3ef55b
Replace as_slice of trait impl with AsRef<[T]>
2022-04-24 12:26:48 +09:00
Jeong YunWon
666db0ff3b
Merge pull request #3657 from moreal/refactor-format
...
Refactor `__format__` calling
2022-04-24 09:52:26 +09:00
Moreal
d6236dcdcc
Unmark correct tests
2022-04-24 05:31:01 +09:00
Moreal
fcb6c3e28f
Refactor __format__ calling
2022-04-24 05:10:22 +09:00
Jeong YunWon
765f6d7c8c
Merge pull request #3656 from youknowone/rearrange
...
relocate stuffs for more fitting modules
2022-04-23 23:31:47 +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
d19a87fedd
Merge pull request #3654 from fanninpm/test-faulthandler
...
Add test_faulthandler.py from CPython 3.10
2022-04-23 20:29:20 +09:00
Padraic Fanning
5266e93e2a
Mark erroring tests on Windows
2022-04-22 22:45:55 -04:00
Jeong YunWon
1bc87e4a10
Merge pull request #3653 from youknowone/prelude
...
vm::prelude sketch
2022-04-23 10:15:47 +09:00
Padraic Fanning
62673fc10c
Mark erroring/failing tests
2022-04-22 21:01:42 -04: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
Padraic Fanning
7ad1b56d2c
Add test_faulthandler.py from CPython 3.10
2022-04-22 20:39:07 -04: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
9cbba173ca
Merge pull request #3651 from youknowone/vm-mod
...
split vm module by its scope
2022-04-23 07:59:10 +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
c103fe1310
Merge pull request #3630 from youknowone/rename-pyobjectview
...
Rename PyObjectView -> Py and PyValue -> PyPayload
2022-04-23 05:51:20 +09:00
Jeong YunWon
400402a000
Merge pull request #3650 from coolreader18/no-serde_json
...
Stop depending on serde_json
2022-04-23 05:26:52 +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
82eb352e9f
common::rc::PyWeak is not used and confusing by its name
2022-04-23 05:17:35 +09:00
Jeong Yunwon
d958d91501
PyObjectWeak is PyRef<PyWeak>
2022-04-23 05:17:34 +09:00