Commit Graph

11302 Commits

Author SHA1 Message Date
Jeong YunWon
b96dddfed1 PyObject::try_int 2022-07-24 15:05:30 +09:00
Jeong YunWon
7a43a2ed3f PyObject::try_index 2022-07-24 15:05:30 +09:00
Jeong YunWon
2d1158b271 remove vm.try_index 2022-07-24 15:05:29 +09:00
Jeong YunWon
a05712fd9b no once cell 2022-07-24 15:05:12 +09:00
Jeong YunWon
e871a53227 resolve conflict 2022-07-24 07:49:22 +09:00
Kangzhi Shi
069c6c9a1e refactor replace nonnull with pointerslot 2022-07-24 07:36:38 +09:00
Kangzhi Shi
2895c8124a use heaptypeext for number protocol 2022-07-24 07:36:38 +09:00
Kangzhi Shi
44daeef9c8 fix static lifetime 2022-07-24 07:36:38 +09:00
Kangzhi Shi
c24457521d proto heaptypeext 2022-07-24 07:36:38 +09:00
Kangzhi Shi
0ebd4e0719 refactor number methods as atomic function 2022-07-24 07:36:38 +09:00
Jeong YunWon
c5d6ef11e4 Merge pull request #2448 from verhovsky/turn-whats-left-into-python-script
Convert whats_left into a CPython script
2022-07-24 04:32:49 +09:00
Jeong YunWon
c5ab11bbe6 fix ci and documents to use new script 2022-07-24 03:40:07 +09:00
Jeong YunWon
3fdc4091ef -I option error 2022-07-24 03:37:46 +09:00
boris
65f0399ba0 Convert whats_left into a CPython script
Co-Authored-By: Jeong YunWon <jeong@youknowone.org>
2022-07-24 03:37:46 +09:00
Jeong YunWon
9e9d61022f Merge pull request #3953 from Yaminyam/fix/range-iter
Fix: `range` beyond the isize range
2022-07-23 18:02:58 +09:00
siontama
57a547088f Refactor: line breaks based on many arguments 2022-07-23 17:06:21 +09:00
siontama
9e3079c565 Fix: range beyond the isize range
* Check if start + step is greater than sys.maxsize
2022-07-23 16:59:14 +09:00
Jeong YunWon
098a7099f8 Merge pull request #3944 from youknowone/refactor-range
Refactor repetive optional range pattern to OptionalRangeArgs
2022-07-23 14:38:52 +09:00
Jeong YunWon
90affcd6de Remove len parameter from saturate
Co-authored-by: 이정민(Jeong-Min Lee) <falsetru@gmail.com>
2022-07-23 04:52:18 +09:00
Jeong YunWon
722f8fdedd Merge pull request #3947 from jopemachine/edit-defaultdict
Add `or`, `ror` and`ior` to `defaultdict`
2022-07-22 18:17:27 +09:00
Gyubong Lee
9c2a5041e9 Reflect feedbacks 2022-07-22 13:16:12 +09:00
Gyubong Lee
3c9e92cebb Add or, ror andior to defaultdict 2022-07-22 12:16:13 +09:00
Jeong YunWon
6ebb3f59ad Merge pull request #3945 from youknowone/ci-mac
Use macos-latest again for CI
2022-07-22 04:37:59 +09:00
Jeong Yunwon
81fffec0bb Use macos-latest again 2022-07-22 03:40:07 +09:00
Jeong Yunwon
84f5aa93b0 Refactor repetive optional range pattern to OptionalRangeArgs 2022-07-22 03:11:38 +09:00
Jeong YunWon
a38965f1f8 Merge pull request #3939 from daeun503/update-array-index
update array.index for optional range
2022-07-22 02:31:39 +09:00
Daeun Lee
e6452d86d0 update array.index for optional range 2022-07-21 21:12:21 +09:00
Jeong YunWon
86bbfef003 Merge pull request #3941 from youknowone/fix-clippy
fix clippy warnings from test
2022-07-21 07:42:41 +09:00
Jeong Yunwon
dd2bf4c96b fix clippy 2022-07-21 06:45:28 +09:00
Jeong YunWon
a3df2169f4 Merge pull request #3879 from key262yek/update-assign-del
Fix failure test_assign_del() in Lib/test/test_syntax.py
2022-07-21 01:00:46 +09:00
c66d22da84 Except operator cases from delete error rule 2022-07-20 18:10:42 +09:00
f51ad1954f Update to parse `group' expression
In CPython, group expression parse single yield and named expression, and handle invalid starred expression at the same time.

I added it such parsing algorithm.

Update python.lalrpop
2022-07-20 18:10:42 +09:00
6b56e51fc1 Change expression parser for del statement
Now star expression can be a argumnet for del statement.
2022-07-20 18:10:42 +09:00
da2695cffd Update del statement del [x] available 2022-07-20 18:10:15 +09:00
918fa48eda Change a short name of Bool and None
changes a short name of True, False, None from "keyword" to "True", "False", "None" themselves
2022-07-20 13:28:01 +09:00
3c07c7ce00 Change error msg "can't" to "cannot" 2022-07-20 13:28:01 +09:00
Karatus
463b51634e Implement number protocol for PyBytes (#3903) 2022-07-20 00:35:32 +09:00
Jeong YunWon
db6fd16920 Merge pull request #3932 from jopemachine/edit-float-getformat
Fix `float.__getformat__`
2022-07-19 20:33:45 +09:00
Gyubong Lee
0e00ab6d9e Update getformat's function signature 2022-07-19 19:39:23 +09:00
Jeong YunWon
8f56c06e27 Merge pull request #3930 from gilteunchoi/missing-winapi-constants
Add constants in `_winapi` module
2022-07-19 10:55:36 +09:00
Gilteun Choi
0559a9b546 add constants that already exist in winbase.rs and winnt.rs 2022-07-19 09:18:27 +09:00
Jeong YunWon
48241839aa Merge pull request #3868 from maong0927/arrayiter_reduce
add arrayiter.__reduce__
2022-07-19 06:53:40 +09:00
Jeong YunWon
d75e388082 Merge pull request #3917 from youknowone/update-unittest
Update more tests
2022-07-19 03:21:44 +09:00
Jeong YunWon
cb9663caf2 Merge pull request #3926 from youknowone/unittest
update signal and venv
2022-07-19 03:21:33 +09:00
CPython developers
2e6bc39693 update venv from CPython 3.10.5 2022-07-19 01:35:32 +09:00
Jeong Yunwon
2f4000b239 mark faiing tests from test_json 2022-07-19 01:33:15 +09:00
CPython developers
413e8250f0 Update {test_}json from CPython 3.10.5 2022-07-19 01:33:15 +09:00
Jeong Yunwon
6bf75998ca Update datetime from CPython 3.10.5 2022-07-19 01:33:15 +09:00
Jeong YunWon
9878d722ce Merge pull request #3916 from youknowone/fix-userlist
Fix outdated test_userlist
2022-07-19 00:36:27 +09:00
CPython developers
b7dd1b7928 Update signal and its test from CPython 3.10.5 2022-07-19 00:11:57 +09:00