Commit Graph

56 Commits

Author SHA1 Message Date
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
Noah
56cfd83cc2 Add more _thread APIs 2020-05-23 16:03:57 -05:00
Noah
97c51be6b8 Add _thread.start_new_thread 2020-05-23 16:03:08 -05:00
Noah
93f697cc67 Use a git version for RawReentrantMutex + RawMutexStatus 2020-05-19 11:21:25 -05:00
Noah
e110f5efd2 Impl Send + Sync for RawReentrantMutex 2020-05-17 14:56:23 -05:00
Noah
b31f23ff9e Add RLock.tp_new 2020-05-17 14:32:06 -05:00
Noah
f103b0cab1 Update the _thread module to have actual mutexes 2020-05-17 14:32:04 -05:00
Wenjie Yang
b81773d1d4 remove arg_check macro in thread mod 2020-04-28 23:45:36 -07:00
Jeong YunWon
6ddb690e09 Remove _vm parameter when it is not required 2020-02-06 11:07:51 +09:00
Jeong YunWon
70b63eb758 new_rustfunc -> new_function & new_method to distinguish bindable functions 2020-01-12 18:39:16 +09:00
Jeong YunWon
6c0f852b62 Refactor pymethod return types to be smaller as possible 2019-10-11 03:27:23 +09:00