Commit Graph

6506 Commits

Author SHA1 Message Date
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
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
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
4546661105 &'static PySequenceMethods 2022-05-29 08:19:49 +09:00
Jeong Yunwon
4d02fe0aa6 static_as_sequence_generic 2022-05-29 08:19:49 +09:00
Jeong Yunwon
38a36d7593 Simplify AsSequence 2022-05-29 08:19:49 +09:00
Jeong Yunwon
6d0abe6915 mapping proxy holds PyMapping 2022-05-29 07:45:52 +09:00
Jeong Yunwon
83a146d8c8 AsMapping only with static reference 2022-05-29 02:33:30 +09:00
Jeong Yunwon
6857384c33 new_mapping_wrapper as static slice 2022-05-28 23:36:10 +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
97c2d187f6 AsMapping::AS_MAPPING 2022-05-28 01:42:06 +09:00
Jeong Yunwon
d05645ea58 update syn-ext 2022-05-28 01:41:55 +09:00
Jeong Yunwon
b9c1f31d46 Fix getattr to use __getattribute__ correctly 2022-05-27 15:22:01 +09:00
Jeong Yunwon
491fde8f7f Fix weakproxy getattr 2022-05-27 15:22:00 +09:00
Jeong YunWon
8ab4e77035 Merge pull request #3717 from youknowone/exception-ref
ExceptionZoo holds static ref
2022-05-27 15:19:49 +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
beff32a2a3 Add compile::Mode::BlockExpr 2022-05-27 10:14:13 +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
Alexander Scharinger
4f87f875fc Add filterfalse.__reduce__ 2022-05-26 00:07:17 +02:00
Jeong Yunwon
14e4aee7b7 Turn contants to PyStrInterned 2022-05-23 09:03:14 +09:00
Jeong Yunwon
0f2e879d69 panic for not process-unique hash seed 2022-05-23 09:03:14 +09:00
Jeong Yunwon
7105073c91 shared hash seed in process 2022-05-23 09:03:13 +09:00
Jeong Yunwon
42c7c79031 Rename Context::deault to genesis to clarify it has root 2022-05-23 09:03:13 +09:00
Jeong Yunwon
2a1c02b8e0 module init 2022-05-23 09:03:13 +09:00
Jeong Yunwon
fb52694e41 PyAttributes key is PyStrInterned 2022-05-23 09:03:13 +09:00
Jeong Yunwon
f8b1c65ede PyStrInterned 2022-05-23 09:03:09 +09:00
gnsxun
a019cbf02c Add count.reduce() (#3737) 2022-05-23 04:38:11 +09:00
Lithium
94240f1846 Fixed bytes_from_object (#3739) 2022-05-22 20:39:50 +09:00
Jeong Yunwon
bbc31364bb PyInterned 2022-05-22 14:19:11 +09:00
Jeong Yunwon
370b2b3f99 static object 2022-05-22 14:18:34 +09:00
Jeong YunWon
3dabaa858a Merge pull request #3740 from CHOUMnote/addDelItem
add __delitem__() funtion
2022-05-22 14:12:34 +09:00
Jeong YunWon
fd45e9e66b Merge pull request #3738 from gnsxun/notimpl_reduce
Add NotImplemented.__reduce__()
2022-05-22 14:01:52 +09:00
Jeong YunWon
bd4f7ab3f9 Merge pull request #3734 from gnsxun/map-mod
Add map.reduce()
2022-05-22 13:52:54 +09:00
CHOUMnote
46fa9f9e6a add __delitem__() funtion 2022-05-22 13:38:35 +09:00
gnsxun
1433d87ad4 Add NotImplemted.reduce() 2022-05-22 11:07:41 +09:00
Lithium
53185cdfb8 Fixed test_bytearray_translate Error (#3730) 2022-05-22 10:57:12 +09:00