Commit Graph

27 Commits

Author SHA1 Message Date
Jeong Yunwon
a5b36e1937 split pyobject.rs 2022-04-16 00:45:19 +09:00
Kangzhi Shi
ca4e8f50e8 refactor ItemProtocol -> Object Protocol 2021-11-27 13:00:37 +02:00
Moreal
bc05b98ca6 Relocate vm.to_repr to object.repr 2021-10-23 21:16:28 +09:00
Jeong YunWon
b759808736 PyObj -> PyObject 2021-10-21 17:55:29 +09:00
Jeong YunWon
d4feb2a6c5 incref -> to_owned 2021-10-21 17:29:34 +09:00
Noa
8dd18d97be PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T> 2021-10-21 16:49:01 +09:00
Aratrik
d6fc20f64e Relocate vm.set_attr to obj.set_attr 2021-10-19 14:50:53 +05:30
Jeong YunWon
997f85ff54 Less PyListRef 2021-10-18 05:15:56 +09:00
jfh
7bc10da154 Relocate vm.get_attribute to obj.get_attr. 2021-10-17 10:30:21 +03:00
Aphek
773305022f Guarantee recursion_depth is never higher than recursion_limit 2021-10-15 02:31:07 -03:00
Jeong YunWon
c39d1436e0 Merge pull request #3133 from youknowone/exception-utils-as-vm-methods
Exception utils as vm methods
2021-10-13 22:35:51 +09:00
Aphek
e732669224 Make it possible for rust functions to increase recursion depth (#3252)
Make it possible for rust functions to increase recursion depth
2021-10-13 08:12:12 +03:00
Jeong YunWon
256de1eb46 Move free functions in vm::exceptions to vm methods 2021-10-13 05:53:43 +09:00
Jeong YunWon
d9e801ed0b Fix sys.__doc__ 2021-10-12 07:10:04 +09:00
Jeong YunWon
47997b7af7 sys uses #[pymodule] 2021-10-12 05:39:42 +09:00
Jeong YunWon
05dca7a7c8 ctx.new_list returns PyLsitRef 2021-10-12 01:22:36 +09:00
Jeong YunWon
a42d547a3f new_{utf8_str, ascii_literal} -> new_str again 2021-10-11 21:28:14 +09:00
Jeong YunWon
cdd38488f8 allow AsciiStr/AsciiString -> PyStr conversion 2021-10-11 02:01:14 +09:00
Jeong YunWon
afe9b9cde0 vm.ctx.new_bool returns PyIntRef 2021-10-11 02:01:14 +09:00
Jeong YunWon
616dfc19e2 vm.new_tuple to convert rust tuple to python tuple 2021-10-11 01:06:07 +09:00
Jeong YunWon
4fb1cdb316 PyObjectWrap 2021-10-08 01:56:00 +09:00
Jeong YunWon
d105c2b2a5 Use sys::MAXSIZE when isize::MAX is used as a meaning of sys.maxsize 2021-10-06 05:16:01 +09:00
Noa
d5c4591fad Add sys.platlibdir 2021-09-30 15:55:47 -05:00
Jeong YunWon
fb25a15f2c split rustpython-stdlib crate 2021-10-01 01:54:04 +09:00
Jeong YunWon
d42c4eb21e move builtins module to vm::stdlib::builtlins for consistency 2021-10-01 01:54:04 +09:00
Jeong YunWon
c3d8e792b7 tp_ -> slot_ 2021-09-30 02:51:44 +09:00
Jeong YunWon
fb4581bd45 vm::sysmodule -> vm::stdlib::sys 2021-09-30 02:19:58 +09:00