Commit Graph

10993 Commits

Author SHA1 Message Date
joohongpark
194fa51cdd fix format 2022-06-14 02:39:51 +09:00
joohongpark
115dfc8251 fix test_dictviews::test_dict_mixed_keys_items 2022-06-14 02:39:51 +09:00
Jeong YunWon
5376c3851e Merge pull request #3772 from falsetru/fix-index-check
Saturate list index on usize.
2022-06-14 02:05:38 +09:00
Jeong YunWon
2c8197f58f Merge pull request #3777 from yangbeom/binascii-crc_hqx
add Binascii crc hqx
2022-06-14 00:51:57 +09:00
Jeong Yunwon
1b22817e12 Update binhex from CPython 3.10.4 / Remove test_binhex - removed in 3.12 2022-06-14 00:51:46 +09:00
yangbeom
4411ac9e17 add binascii.crc_hqx test 2022-06-14 00:51:46 +09:00
Jeong-Min Lee
805c9553dc Extract repeated code as a closure. 2022-06-14 00:39:15 +09:00
Jeong-Min Lee
4f97c0f053 Extract saturate function. 2022-06-14 00:39:14 +09:00
Jeong-Min Lee
83e2490d78 Saturate on usize. 2022-06-14 00:36:43 +09:00
oow214
7848e06a41 Add itertools count repr (#3784) 2022-06-13 23:52:26 +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
Miragecore
fafd8434ac add getformat (#3774) 2022-06-12 15:38:32 +09:00
Isac Byeonghoon Yoo
ce546f6183 feat(sys): add sys.is_finalizing() (#3776) 2022-06-11 21:10:09 +09:00
oow214
d06950e067 Add classmethod initialize (#3773) 2022-06-11 20:16:36 +09:00
JaeHyung Jang
9757c8244f Setitem error have type name (#3770) 2022-06-11 16:48:07 +09:00
Jeong YunWon
43d811ccc8 Merge pull request #3771 from isac322/fix_test_b64decode_padding_error
fix(binascii): a2b_base64() raises on non padded input
2022-06-11 16:21:37 +09:00
Byeonghoon Yoo
3bbd59005f style(binascii): run rustfmt 2022-06-11 15:05:51 +09:00
Byeonghoon Yoo
6bd9c81626 fix(binascii): enable test_b64decode_padding_error 2022-06-11 14:58:53 +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
ee4efd4ba8 Merge pull request #3768 from redbopo/add_context_empty_bytes
Add Context::empty_bytes
2022-06-08 23:43:35 +09:00
redbopo
c0999a909d Add Context::empty_bytes 2022-06-08 01:11:08 +08:00
Jeong YunWon
3d345d7de2 Merge pull request #3766 from RustPython/dependabot/cargo/regex-1.5.6
Bump regex from 1.5.4 to 1.5.6
2022-06-08 01:52:16 +09:00
dependabot[bot]
0e2458d3f5 Bump regex from 1.5.4 to 1.5.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 08:34:18 +00:00
Noa
cc615c34bf Merge pull request #3767 from coolreader18/upd-result-like
Upgrade result-like
2022-06-07 03:31:53 -05:00
Noa
a085920199 Upgrade result-like 2022-06-06 22:45:12 -05:00
Jeong YunWon
dae2c7d241 Merge pull request #3763 from youknowone/inc-lasti
split functions from execute_instructions
2022-06-04 18:54:00 +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
385f6adcde Merge pull request #3764 from youknowone/nbody
increase nbody benches argument
2022-06-04 18:53:18 +09:00
Jeong Yunwon
c99b05b466 increase nbody benches argument 2022-06-04 18:02:36 +09:00
Jeong Yunwon
2931395ac2 optimize instructions 2022-06-04 17:45:25 +09:00
Jeong Yunwon
2ec7085921 make exception cold 2022-06-04 17:45:25 +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
Jeong YunWon
21c8e69101 Merge pull request #3758 from youknowone/relocation-statics
move generic slots to protocol module
2022-06-02 06:02:22 +09:00
Jeong YunWon
7182111fa9 Merge pull request #3748 from youknowone/getattr
Fix getattr to use `__getattribute__` correctly
2022-06-01 09:38:27 +09:00
Jeong Yunwon
a7f97671ac move generic slots to protocol module 2022-05-30 09:49:10 +09:00
Jeong YunWon
c40bc62298 Merge pull request #3507 from qingshi163/number-protocol
Implement Number Protocol
2022-05-30 08:16:52 +09:00
Jeong YunWon
17816bc52a Merge pull request #3757 from youknowone/update-gzip
update gzip and test_gzip from CPython 3.10.4
2022-05-30 08:11:54 +09:00
Jeong Yunwon
09fc676164 Use static ref 2022-05-30 07:38:33 +09:00
Kangzhi Shi
ea95777ec7 Simplify AsNumber trait 2022-05-30 07:38:29 +09:00
Kangzhi Shi
1ed18c012a fix vm.to_index now use number protocol 2022-05-30 07:36:08 +09:00
Kangzhi Shi
3e6e348a67 impl number protocol float 2022-05-30 07:36:08 +09:00
Kangzhi Shi
59cedd2213 deprecated warnings for int 2022-05-30 07:36:07 +09:00
Kangzhi Shi
20632edc5d Number protocol for PyInt 2022-05-30 07:36:07 +09:00
Kangzhi Shi
beeb4499f2 PyNumber protocol 2022-05-30 07:23:20 +09:00
Jeong Yunwon
5ae16a2bfb update gzip and test_gzip from CPython 3.10.4 2022-05-30 07:22:37 +09:00
Jeong YunWon
8e20e235f9 Merge pull request #3750 from youknowone/as-mapping-const
use static reference for AsMapping / AsSequence
2022-05-30 06:33:26 +09:00
Jeong Yunwon
4546661105 &'static PySequenceMethods 2022-05-29 08:19:49 +09:00