Commit Graph

12496 Commits

Author SHA1 Message Date
Jeong YunWon
f628a3fd7e remove #[macro_use] 2023-02-22 20:41:27 +09:00
Jeong YunWon
f078f79c90 Flatten rustpython_parser interface 2023-02-22 20:32:31 +09:00
Jeong YunWon
af45d22fb7 make_tokenizer -> lex to integrate terms
we don't distinguish scanner or tokenizer from lexer
2023-02-22 20:28:15 +09:00
Jeong YunWon
c3a7d8c433 relocate feature-independent use 2023-02-22 20:28:03 +09:00
Jeong YunWon
6c7d81c325 Fix ModeParseError message 2023-02-22 20:28:03 +09:00
Jeong YunWon
a6f8c53924 Break down rustpython_parser::error module
because it doesn't share any common errors but specific error for each sub module
2023-02-22 20:28:01 +09:00
Jeong YunWon
6d5bbd913c Merge pull request #4542 from charliermarsh/charlie/expose
Always wrap token streams in `SoftKeywordTransformer`
2023-02-22 16:48:01 +09:00
Charlie Marsh
4e957d3484 Always wrap in SoftKeywordTransformer 2023-02-21 19:18:42 -05:00
Charlie Marsh
454ec3e74c Expose SoftKeywordTransformer on public API 2023-02-21 19:00:32 -05:00
Jim Fasarakis-Hilliard
ddf497623a Merge pull request #4519 from charliermarsh/charlie/match
Add support for match statements to parser
2023-02-21 19:43:28 +02:00
Jeong YunWon
746cb0493f Merge pull request #4508 from marvinmednick/pathconf_names
Pathconf names
2023-02-22 00:03:43 +09:00
Jeong YunWon
2e27587f15 Merge pull request #4530 from itsankitkp/handle-panic-strftime-new
Return arg in case of invalid param in strftime
2023-02-22 00:03:04 +09:00
Jeong YunWon
84c27f3694 Merge pull request #4535 from youknowone/fix-mul-and-union
Fix sequence mul types and add AsNumber for PyUnion
2023-02-22 00:02:16 +09:00
Jeong YunWon
42c0752370 less flaky syntax_async (#4536) 2023-02-21 23:17:11 +09:00
Dan Näsman
3615b1620e switch erprintln! to TODO comment (#4528) 2023-02-21 23:16:10 +09:00
Jeong YunWon
e42553867f Update extra_tests/snippets/stdlib_datetime.py 2023-02-21 23:14:53 +09:00
Jeong YunWon
955347e426 posix.pathconf_names only for linux 2023-02-21 19:45:04 +09:00
Marvin Mednick
468f1aa312 Implmentation for os.pathconf_names 2023-02-21 19:15:29 +09:00
Karatus
afb64c873a Add AsNumber for PyUnion 2023-02-21 19:02:35 +09:00
Karatus
8f17468f51 Fix mul/repeat index type to isize 2023-02-21 19:02:33 +09:00
Jeong YunWon
78b58122c1 Merge pull request #4533 from haxelion/bugfix/digest_block_size
Implemented the block_size attribute for PyHasher
2023-02-21 19:01:40 +09:00
Jeong YunWon
97ac351c5e Merge pull request #4534 from seungha-kim/graphlib
Copy graphlib module from cpython
2023-02-21 18:55:34 +09:00
Kim Seungha
c7f442425d Copy graphlib module from CPython 3.11 2023-02-21 18:11:19 +09:00
Charles Hubain
df0963446f Implemented the block_size attribute for PyHasher, fixing the 2 failing hmac tests 2023-02-21 16:52:15 +09:00
Jeong YunWon
ef873b4b60 Merge pull request #4531 from charliermarsh/charlie/exception-groups
Implement except* syntax
2023-02-21 13:20:18 +09:00
Jeong YunWon
6a267debf5 Merge pull request #4526 from haxelion/feature/hmac_3.11
Update hmac.py to CPython 3.11 and integrate test_hmac.py tests
2023-02-21 12:32:49 +09:00
Jeong YunWon
334bb30f9e Merge pull request #4532 from charliermarsh/charlie/star
Allow starred expressions in subscripts
2023-02-21 12:30:52 +09:00
Charlie Marsh
da9b2ee6b9 Implement except* syntax 2023-02-21 12:19:54 +09:00
Charlie Marsh
3ebf23e39b Update Python.asdl from CPython 3.11.1 2023-02-21 12:19:51 +09:00
Charles Hubain
b5f54f1624 Integrated hmac.py and test_hmac.py:
* fix typing issue on digest update function
* implemented copy for PyHasher object
* fixed two test_hashlib.py expected failure as a side-effect
2023-02-21 11:35:09 +09:00
Charles Hubain
33da5bf81f Updated Lib/hmac.py to cpython 3.11 version and included hmac test suite 2023-02-21 11:20:27 +09:00
Charlie Marsh
43e3fd9c2c Allow starred expressions in subscripts 2023-02-20 17:59:35 -05:00
Charlie Marsh
0201a5aadb Update compiler/parser/src/soft_keywords.rs
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2023-02-20 15:03:39 -05:00
Jeong YunWon
fa38e9fa47 clean up soft-keyword transform 2023-02-20 15:03:39 -05:00
Charlie Marsh
382df8e714 Use muiltipeek 2023-02-20 15:03:39 -05:00
Charlie Marsh
c5db729191 Add support for match statements to parser 2023-02-20 15:03:39 -05:00
Jim Fasarakis-Hilliard
e0a294849a Merge pull request #4529 from haxelion/bugfix/fix_gethostbyname_ex
Ensure socket.gethostbyname_ex only returns IPv4 addresses
2023-02-20 18:11:26 +02:00
Ankit Kumar Pandey
fcfe8e1ac8 Return arg in case of invalid param in strftime
Chrono panics in case of unsupported formats, this patch handles such
cases and returns supplied format as a result.
2023-02-20 21:05:16 +05:30
Charles Hubain
4f1085beb3 Ensure socket.gethostbyname_ex only returns IPv4 addresses 2023-02-20 23:51:11 +09:00
Jeong YunWon
e5735cde67 Merge pull request #4517 from youknowone/cpython-3.11
trying to go with CPython 3.11
2023-02-20 13:50:10 +09:00
Jeong YunWon
75f3f3c8c4 Fix syntax_async.py for 3.11 2023-02-20 02:06:21 +09:00
Zhiyan Xiao
3b8d670c81 Add unicodedata.east_asian_width (#4523) 2023-02-20 01:38:02 +09:00
John Pham
8b7158f169 Make common::repr throw error instead of panic (#4520) 2023-02-19 22:09:54 +09:00
Jim Fasarakis-Hilliard
82c1a3a9ea Merge pull request #4521 from youknowone/update-ast
Update from CPython v3.10.9 to prepare match statement
2023-02-18 17:36:51 +02:00
CPython Developers
53d0f41ba5 Update from CPython v3.10.9 2023-02-18 22:52:47 +09:00
Jeong YunWon
a5091c56cb Merge pull request #4440 from MrrRaph/whats_left_utf8
Fixed UTF-8 encoding for `whats_left.py` and type mismatching in `stdlib/src/ssl.rs`
2023-02-18 18:45:23 +09:00
Jeong YunWon
daca1f38cf Fix cspell warnings 2023-02-18 14:02:18 +09:00
Jeong YunWon
5df8d29fe4 Add whats_left running to CI 2023-02-18 14:02:18 +09:00
Jeong YunWon
8c38a8381c os is frozen in 3.11 2023-02-18 07:09:42 +09:00
Jeong YunWon
d22446d1dd imp.py -> stdlib_imp.py 2023-02-18 07:09:42 +09:00