Commit Graph
12509 Commits
Author SHA1 Message Date
Ellie 20b408ff3e Update install rustup 2023-02-23 10:38:47 +02:00
Jeong YunWon 4a579b5752 Merge pull request #4553 from howjmay/co_nlocals
Add co_nlocals to code object
2023-02-23 11:14:34 +09:00
Jeong YunWon edf5995a1e Merge pull request #4552 from charliermarsh/charlie/loc
Limit match range to end of last statement
2023-02-23 02:11:42 +09:00
Jeong YunWon 6b2efdc9c3 Merge pull request #4543 from youknowone/flatten-parser
Flatten parser interface
2023-02-23 02:09:46 +09:00
Jeong YunWon 17f5aed6dd Merge pull request #4548 from youknowone/hash-tuple
Prepare to implement hash for tuple
2023-02-23 02:08:13 +09:00
Jim Fasarakis-Hilliard fb44ded002 Merge pull request #4549 from youknowone/py311
Mark RustPython as Python 3.11
2023-02-22 18:38:12 +02:00
Yang Hau fea711cebb Add co_nlocals to code object
Closes #4546
2023-02-23 00:29:35 +08:00
Charlie Marsh 57efe6f75d Limit match range to end of last statement 2023-02-22 11:25:50 -05:00
Jim Fasarakis-Hilliard 6d71f75817 Merge pull request #4551 from charliermarsh/charlie/trailing
Allow trailing commas in MappingPattern
2023-02-22 17:53:12 +02:00
Charlie Marsh d570b1731e Allow trailing commas in MappingPattern 2023-02-22 10:02:41 -05:00
Jeong YunWon 8fc263f62f Python 3.11 missed 2023-02-22 22:18:15 +09:00
Narawit Rakket 3886f889ab Prepare to implement hash for tuple 2023-02-22 22:07:23 +09:00
Jeong YunWon f96942bdc0 use super::* from tests submodules 2023-02-22 21:01:39 +09:00
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 MarshandJim Fasarakis-Hilliard 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