Commit Graph

256 Commits

Author SHA1 Message Date
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
551b873616 Merge pull request #3762 from youknowone/into-pyexc
distinguish ToPyException and IntoPyException
2022-06-04 18:53:33 +09:00
Jeong Yunwon
667ad7593d distinguish ToPyException and IntoPyException 2022-06-04 11:12:45 +09:00
Jeong YunWon
3379ea2d78 Merge pull request #3754 from youknowone/cargo
add stdlib to rustpython_wasm and remove threading from vm default
2022-06-03 10:56:42 +09:00
Kangzhi Shi
3e6e348a67 impl number protocol float 2022-05-30 07:36:08 +09:00
Jeong Yunwon
cee4814074 add stdlib to rustpython_wasm and remove threading from vm default 2022-05-28 14:27:03 +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
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