Commit Graph

66 Commits

Author SHA1 Message Date
Jeong YunWon
2ca3dc4468 _therad.LockType.__new__ 2021-10-05 19:37:07 +09:00
Jeong YunWon
c3d8e792b7 tp_ -> slot_ 2021-09-30 02:51:44 +09:00
Jeong YunWon
0d09bc7285 derive(PyValue) not to depend on local context 2021-09-24 20:41:11 +09:00
Jeong YunWon
ffef73c1d7 split Arg{Callble,Iterable} from pyobject.rs 2021-09-22 21:01:44 +09:00
Jeong YunWon
a5309a7888 Rename Py{Callable, Iterable} to Arg{..}
which were not a python object but just argument helper
2021-09-22 20:58:26 +09:00
Jeong YunWon
137a543ca7 regroup use items for bulitin stdlibs 2021-09-22 12:08:17 +09:00
Dean Li
88e869a4da impl #[derive(PyValue)] for static_type 2021-09-21 21:35:48 +08:00
Lee Dogeon
63b1696458 Derive name from tp_name 2021-09-09 00:07:36 +09:00
eldpswp99
55709b71b6 implement SlotConstructor for every class 2021-09-04 20:18:13 +09:00
Jeong YunWon
ff4efd0f60 Fix unnessessary borrow 2021-07-30 02:32:16 +09:00
Noah
46e94b5720 Replace PyTuple.borrow_value() with .as_slice() 2021-05-20 10:29:49 -05:00
Noah
516eead348 Replace PyStr.borrow_value() with .as_str() 2021-05-20 10:29:48 -05:00
Noah
376ce87b76 Move Either to crate::utils 2021-05-20 10:29:48 -05:00
Noah
99104faaf7 Re-export pyobject::* from the root of the crate 2021-05-20 10:24:07 -05:00
Noah
e9984c3829 Add a bunch of stuff to the socket module 2021-05-03 12:26:54 -05:00
Noah
2e33b227b3 Impl py_io::Write for String 2021-04-25 18:03:28 -05:00
Noah
f50f930255 Add setattro slot, split call_method and call_special_method 2021-03-15 09:45:06 -05:00
Noah
a0d9481fe5 Add RLock._is_owned 2021-02-20 21:04:30 -06:00
boris
a6623f1a7d Format ID's as hex 2021-01-24 01:13:30 -05:00
Noah
8cdef9e1fa Use ahash in the vm 2021-01-08 18:08:21 -06:00
Jeong YunWon
4add0220ae PyValue::class() returns ref 2020-10-20 02:29:20 +09:00
Jeong YunWon
34a2038e17 Use StaticType::static_class() rather than vm.class 2020-10-20 01:47:53 +09:00
Jeong YunWon
9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +09:00
Jeong YunWon
4da1b62c18 PyFuncArgs -> FuncArgs
which does not represent a single python object
2020-10-11 09:38:07 +09:00
Jeong YunWon
597b7bd098 PyFuncArgs::{new, with_kwargs_names} 2020-10-11 09:35:15 +09:00
Jeong YunWon
a089c9b6d3 TypeProcotol::lease_class() -> TypeProtocol::class() 2020-10-11 09:11:58 +09:00
Jeong YunWon
75161a63de Merge pull request #2248 from youknowone/lease-class
lease_class as much as possible
2020-10-10 13:38:19 +09:00
Noah
acd0bf5434 Make the FromArgs derive less verbose 2020-10-01 17:42:07 -05:00
Jeong YunWon
fe5767a975 lease_class as much as possible 2020-09-30 11:41:06 +09:00
Noah
f0318141c0 Add vm.start_thread() and related functions 2020-09-28 00:15:30 -05:00
Noah
3d3889f0df Add a getattro slot 2020-09-25 19:46:42 -05:00
Jeong YunWon
59db19d1ea PyClass -> PyType 2020-09-26 07:32:38 +09:00
Jeong YunWon
f81ad04ce3 PyString -> PyStr 2020-09-26 00:20:02 +09:00
Noah
ca5f2da9e9 Make more builtin functions be named 2020-09-21 10:32:25 -05:00
Noah
2dfb4f6762 new_thread() returns VirtualMachine 2020-09-17 17:31:59 -05:00
Noah
18273da108 Interpreter struct for managing thread-local vm stack 2020-09-15 16:44:39 -05:00
Jeong YunWon
aeebc444e2 CPython-compatible drop implementation 2020-09-15 04:04:21 +09:00
Jeong YunWon
c9c1ac9532 Give module names for classes 2020-08-23 18:24:46 +09:00
Jeong YunWon
a846338395 BorrowValue for PyTuple 2020-08-09 14:55:09 +09:00
Jeong YunWon
ab37e455f3 BorrowValue for PyString 2020-08-09 14:14:55 +09:00
Jeong YunWon
ee90f7cfbd IntoPyException 2020-08-05 16:45:06 +09:00
Jeong YunWon
67b5d61d1f Refactor DictKey 2020-08-04 02:12:56 +09:00
Aviv Palivoda
f970f4fabc Add global import lock 2020-07-18 17:04:35 +03:00
Noah
f40c3d4ab1 Fix thread.rs 2020-06-21 15:39:13 -05:00
Noah
ca7d9b625a Fix error with latest parking_lot version 2020-06-21 11:45:26 -05:00
Noah
b245712949 Fix some 32-bit only oom tests + others 2020-06-06 17:14:32 -05:00
Noah
fa2f5d640a Use the thread_local crate for local dicts 2020-06-02 15:32:01 -05:00
Noah
9850b5f0d1 Implement _thread._local 2020-05-25 01:26:51 -05:00
Noah
a6afd9e855 Add _thread._count, repr(lock), and respect TIMEOUT_MAX 2020-05-23 20:13:56 -05:00
Noah
2e536ec7b1 Add some TODO comments 2020-05-23 16:04:41 -05:00