Commit Graph

258 Commits

Author SHA1 Message Date
siontama
b190a0cbf3 refactor: change PyArrayIter name
* Change `PyArrayIter` struct to `PyArrayIterator`
2022-07-13 14:07:56 +09:00
Noa
4771ab6383 Switch then(|| foo) to then_some(foo) 2022-07-07 11:19:55 -04:00
Padraic Fanning
97db88560a Resolve ambiguous imports on Windows 2022-07-04 19:17:54 -04:00
Padraic Fanning
4e87250ba2 Fix compilation errors on macOS and Windows 2022-07-04 19:03:22 -04:00
Padraic Fanning
ca90bf3be6 Add _socket constants from CPython 3.10 2022-07-04 18:34:34 -04:00
Jeong Yunwon
16bed5b14d put wrap_index to SequenceIndexOp 2022-06-25 01:18:36 +09:00
Jeong Yunwon
38b1f5932c SequenceIndexOp 2022-06-25 01:18:35 +09:00
yangbeom
00cb5ca558 add fn Binascii rlecode_hqx rledecode_hqx (#3809) 2022-06-23 23:22:16 +09:00
Jeong Yunwon
ffd5a0db9a slicelen -> slice_len 2022-06-23 02:26:15 +09:00
gogim1
19f3121f88 rename for name consistency 2022-06-19 18:06:18 +08:00
gogim1
9c8ace592d rename for name consistency 2022-06-19 17:11:20 +08:00
Jeong Yunwon
af2fac9804 use usize for mmap fields 2022-06-15 01:59:26 +09:00
Dennis Zhuang
e5a76797b2 Impl AsBuffer, AsMapping and AsSequence protocols for PyMmap 2022-06-15 01:59:26 +09:00
Dennis Zhuang
929ad30c9d Impl seek, write, write_byte methods etc. 2022-06-15 01:59:26 +09:00
Dennis Zhuang
ba33bc990d Impl read, read_byte and readline methods 2022-06-15 01:59:26 +09:00
Dennis Zhuang
d96b165fad Impl madvise method 2022-06-15 01:59:26 +09:00
Dennis Zhuang
d4f001fa21 Basic mmap module 2022-06-15 01:38:27 +09:00
Jeong YunWon
cc4583ef50 mmap skeleton 2022-06-14 17:12:51 +09:00
yangbeom
4411ac9e17 add binascii.crc_hqx test 2022-06-14 00:51:46 +09:00
Jeong YunWon
f624e8e78b Merge pull request #3785 from youknowone/exact-size-operator
PyExactSizeIterator
2022-06-13 23:44:49 +09:00
Jeong Yunwon
4f272eea85 PyExactSizeIterator 2022-06-13 22:19:24 +09:00
JaeHyung Jang
9757c8244f Setitem error have type name (#3770) 2022-06-11 16:48:07 +09:00
Byeonghoon Yoo
3bbd59005f style(binascii): run rustfmt 2022-06-11 15:05:51 +09:00
Byeonghoon Yoo
d2b8686de3 fix(binascii): a2b_base64() raises binascii.Error instead of ValueError 2022-06-11 14:58:53 +09:00
Byeonghoon Yoo
fbd258ec81 fix(binascii): a2b_base64() raises on non padded input 2022-06-11 14:58:53 +09:00
Jeong Yunwon
667ad7593d distinguish ToPyException and IntoPyException 2022-06-04 11:12:45 +09:00
Kangzhi Shi
3e6e348a67 impl number protocol float 2022-05-30 07:36:08 +09:00
Jeong Yunwon
d05645ea58 update syn-ext 2022-05-28 01:41:55 +09:00
Jeong Yunwon
9b2a9d2377 TypeZoo uses &'static Py<PyType> 2022-05-27 10:35:01 +09:00
Jeong Yunwon
9db69d628f {Type,Exception}Zoo holds static ref 2022-05-27 10:23:33 +09:00
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