531 Commits

Author SHA1 Message Date
Jeong YunWon
c44843fa1e Merge pull request #3700 from youknowone/attr-intern
PyStrInterned for PyAttributes/Constants
2022-05-27 08:56:28 +09:00
rebunto
cc83db307e implement key argument of bisect 2022-05-23 10:33:17 +09:00
Jeong Yunwon
fb52694e41 PyAttributes key is PyStrInterned 2022-05-23 09:03:13 +09:00
Jeong Yunwon
bbc31364bb PyInterned 2022-05-22 14:19:11 +09:00
Lithium07z
5263eca3a8 Add array.ArrayType 2022-05-22 12:08:51 +09:00
Noa
9903bbceb5 Change PyResult<T, E> back to PyResult<T> 2022-05-19 00:58:56 -05:00
Jeong Yunwon
f15c51bb8d clean up socket based on ToPyException 2022-05-18 06:03:03 +09:00
Jeong Yunwon
6e571946a0 introduce PyStrInterned 2022-05-17 06:16:35 +09:00
Jeong Yunwon
8a2cd2ba08 Refactor DictKey - Remove &PyObject / PyObjectRef 2022-05-16 18:14:19 +09:00
Jeong Yunwon
7df0acd6b6 share comparisonop between bytecode and vm 2022-05-12 04:02:14 +09:00
Jeong YunWon
2ba1d93550 Merge pull request #3686 from fanninpm/fcntl-flock-lockf
Add flock and lockf to fcntl module
2022-05-04 14:43:37 +09:00
rebunto
392a9476a7 Changed pyclass name of PyArray and PyArrayIter #3612 2022-05-04 14:08:34 +09:00
Padraic Fanning
36ab937e53 Avoid unused import error on wasi and redox 2022-05-03 20:14:55 -04:00
Padraic Fanning
46a0dea503 Exclude flock() from wasi/redox 2022-05-03 18:27:23 -04:00
Padraic Fanning
2c8588db2e Group imports together and cargo fmt 2022-05-03 18:25:00 -04:00
Padraic Fanning
8d0ba74d12 Add flock and lockf to fcntl module 2022-05-03 18:08:48 -04:00
Padraic Fanning
cf063645a6 Move LOCK_* constants to non-wasi/non-redox part 2022-05-02 22:10:23 -04:00
Padraic Fanning
4362cee88f Add more missing constants to fcntl module 2022-05-02 21:04:10 -04:00
Jeong YunWon
f5c0c03d04 Merge pull request #3676 from fanninpm/more-fcntl-constants
Add some platform-dependent constants to fcntl
2022-05-02 10:56:06 +09:00
Padraic Fanning
64a3be5f0f Add some platform-dependent constants to fcntl 2022-05-01 19:41:16 -04:00
Padraic Fanning
fad9d87632 Add more termios functions 2022-05-01 18:41:14 -04:00
Jeong YunWon
bfb5e93af6 Merge pull request #3673 from fanninpm/more-termios-constants
Add some platform-dependent constants to termios
2022-05-01 15:00:37 +09:00
Jeong YunWon
4c0d49de96 Merge pull request #3658 from coolreader18/move-crt_fd
Move crt_fd to common
2022-05-01 14:59:42 +09:00
Padraic Fanning
4cd59d5ec6 Add some platform-dependent constants to termios
Note: includes constants that are missing and/or have incomplete
platform coverage.
2022-05-01 00:22:09 -04:00
Noa
77495a2b2d Move stdlib::os::errno to common 2022-04-30 13:35:43 -05:00
Jeong Yunwon
ec9697aabb Remove direct eprintln! usage from vm 2022-04-30 23:01:26 +09:00
Jeong Yunwon
24186558ed Deref for ArgIntoComplex 2022-04-29 10:51:25 +09:00
Jeong Yunwon
84e2b52240 Deref for ArgIntoFloat 2022-04-29 10:47:59 +09:00
Jeong Yunwon
37daf188ca Use option-like operator for OptionalArg 2022-04-29 10:07:02 +09:00
Noa
ec266c43e4 Merge pull request #3641 from coolreader18/mini-fixes
Small fixes
2022-04-28 17:06:58 -05:00
Jeong YunWon
ab95b57a62 Merge pull request #3627 from youknowone/getattro
GetAttro take reference
2022-04-29 05:48:06 +09:00
Jeong Yunwon
32aab6b148 DefaultConstructor 2022-04-27 03:29:47 +09:00
Jeong Yunwon
797e8ab724 Constructor/Initializer for PySocket 2022-04-27 02:59:16 +09:00
Jeong Yunwon
d1d932f0ca Initializer for contextvars 2022-04-27 02:53:09 +09:00
Jeong YunWon
88080505e4 Add PyTypSlot::init 2022-04-27 02:22:05 +09:00
Jeong Yunwon
f8234aee84 GetAttro take reference 2022-04-26 21:56:27 +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
0535077631 either is a function utility 2022-04-23 20:49:31 +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
a63ad27cd4 PyContext is not a python object 2022-04-23 07:56:21 +09:00
Noa
85888c577f Vec::spare_capacity_mut is stabilized 2022-04-22 17:30:43 -05:00
Noa
56e816caf7 Switch from deprecated widestring function 2022-04-22 17:30:43 -05:00
Jeong Yunwon
bb19b7c43a Move string intern to PyContext 2022-04-23 06:06:53 +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
d958d91501 PyObjectWeak is PyRef<PyWeak> 2022-04-23 05:17:34 +09:00
Nixon Enraght-Moony
639a4fe6b6 Add _statistics module containing _normal_dist_inv_cd
Closes #3251
2022-04-20 17:18:31 +09:00
Jeong YunWon
047bab998b Merge pull request #2950 from fanninpm/contextvars
Add contextvars from CPython 3.8
2022-04-20 16:54:00 +09:00