Commit Graph
146 Commits
Author SHA1 Message Date
Jeong, YunWon 52d46326de make_closure (#5955) 2025-07-13 01:00:15 +09:00
Jeong, YunWon fef660e6b3 more PEP695 (#5917)
* compile_class_body

* type.__orig_bases__ regression of test_all_exported_names

* rework type_params scope

* refactor compile_class_def
2025-07-12 20:42:57 +09:00
Jeong, YunWon 3ef0cfc50c compiler enter_scope (#5950)
* enter_scope

* drop_class_free

* push_output based on enter_scope
2025-07-12 19:28:22 +09:00
Jeong, YunWon c4234c1692 SymbolTable::varnames, fblock (#5948)
* SymbolTable::varnames

* varname_cache copies it

* fasthidden & static attributes

* metadata

* fblock
2025-07-11 22:43:08 +09:00
Jeong, YunWon 59c7fcbb98 compiler set_qualname (#5930)
* set_qualname

* remove qualified_path
2025-07-11 18:21:51 +09:00
Jeong, YunWon 392f9c26c5 Instruction::Resume (#5944)
* ImportStar

* Instruction::Resume
2025-07-11 17:25:57 +09:00
Jeong, YunWon 0ae6b4575c typing TypeAlias (#5945) 2025-07-11 16:16:01 +09:00
Jeong, YunWon 8b6c78c884 SymbolTableType::Lambda (#5942) 2025-07-11 13:35:52 +09:00
Jeong, YunWon 9b133b8560 CodeInfo::private (#5943) 2025-07-11 13:11:15 +09:00
Jeong, YunWon 2f94a63958 Add SymbolUsage::TypeParams (#5941) 2025-07-11 11:24:20 +09:00
Jeong, YunWon 18d7c1baf1 codeobj.qualname (#5929) 2025-07-10 10:27:03 +09:00
Jeong YunWon bd54e537fd Fix __parameters__, __type_params__ 2025-07-07 23:23:24 +09:00
Shahar Naveh 694fe50241 Use const fn where possible (#5894) 2025-07-04 22:26:20 +09:00
Shahar Naveh 69545c0798 Use Self where possible (#5892) 2025-07-04 10:08:43 +09:00
Jeong, YunWon 8a2a6af91b __type_params__ in __build_class__ (#5883)
* remove future __classs_getitem__

* __type_params__ in __build_class__
2025-07-03 14:08:42 +09:00
Jeong YunWon fa7af0e5ea type.__type_params__ 2025-07-01 19:05:29 +09:00
Jeong, YunWon 3d951a883a Compile starred annotations (#5881)
* Fix starred annotation

* uncomment starred annotation
2025-07-01 17:20:42 +09:00
Jeong, YunWon 28dff8af6c Fix TypeParams, TypeAlias compile (#5862) 2025-06-29 11:24:15 +09:00
Jeong, YunWon f5ccd4faed Fix __annotation__ (#5849) 2025-06-27 20:36:19 +09:00
Jeong, YunWon 6b6534508f Fix type_params lifetime in symboltable (#5844)
* fix cspell

* Fix type_params lifetime in symboltable
2025-06-27 14:32:54 +09:00
Jeong YunWon 3673372d3d Fix cspell warnings 2025-06-27 12:32:59 +09:00
Jeong, YunWon 9c2a4695c1 Fix excepthook (#5830) 2025-06-24 16:58:27 +09:00
Jeong, YunWon 2e368baf2a Fix Nightly clippy (#5798) 2025-06-06 22:00:07 +09:00
Ashwin Naren 397a1968c8 fix clippy
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-04-19 11:15:01 -07:00
Ashwin NarenandJeong, YunWon 783e45f8ac Apply review
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2025-04-19 09:48:20 -07:00
Ashwin Naren fc331a154f fix errors and formatting
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-04-18 22:41:48 -07:00
Ashwin Naren 12ceb9695c cleaner panic output
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-04-18 22:31:29 -07:00
Ashwin Naren 4d53f5925c remove match test 2025-04-15 11:56:29 -07:00
Ashwin Naren 21272025c2 improve error handling 2025-04-15 11:54:46 -07:00
Ashwin Naren d44324d4d0 clippy 2025-04-15 11:44:04 -07:00
Ashwin Naren 628287c14e update snapshot 2025-04-15 11:42:13 -07:00
Ashwin Naren e949c9aa3f rename 2025-04-15 11:41:27 -07:00
Ashwin Naren 09c199a1ba match cleanup 2025-04-15 10:03:29 -07:00
Ashwin Naren d47944b2fd error handling 2025-04-15 10:02:32 -07:00
Ashwin Naren 456e555e8b better error 2025-04-15 09:25:06 -07:00
Ashwin Naren c7042fd847 remove unneeded validation 2025-04-15 08:39:58 -07:00
Ashwin Naren 49b348cc7e Remove Instruction::IsOperation 2025-04-14 22:33:55 -07:00
Jeong, YunWon 4ae2936a45 fix more cspell warnings (#5689) 2025-04-11 12:08:07 +09:00
Ashwin Naren 8dc1718002 Match statements rewrite (#5628) 2025-04-10 14:00:54 +09:00
ivan-shrimp 3ad8fd711f fix expression list order
don't emit a no-op when unpacking a single element

assume positional args stored as tuple in extended call
2025-03-31 18:00:19 +09:00
Noa 160363fa46 Fix float parsing (#5643)
* Fix float parsing

* Add rustpython_literal::complex

* Don't call .to_string() on a constant
2025-03-31 14:37:47 +09:00
Noa d3d92bbb6f Update unparse to work with ruff & remove ruff_python_codegen 2025-03-27 22:14:58 -05:00
Noa 8081e0d281 Copy unparse.rs from rustpython-parser 2025-03-27 22:09:00 -05:00
Noa f398321b1f Remove parser dependency from codegen 2025-03-27 22:09:00 -05:00
Noa 030243a6f9 Split out wtf8 into its own crate 2025-03-28 11:26:29 +09:00
Noa 6b72d2ef5d Check+lint examples, tests, and benches in CI 2025-03-28 11:26:12 +09:00
Noa b6aacbf401 Merge pull request #5629 from coolreader18/surrogate-literals
Parse surrogates in string literals properly
2025-03-27 10:15:41 -05:00
Noa c6cab4c43a Parse surrogates in string literals properly 2025-03-26 22:44:42 -05:00
Jeong YunWon bc38e9dedd Apply nightly clippy suggestions 2025-03-26 14:52:23 +09:00
Noa 950a8d5694 Update to ruff_python_parser 0.11 2025-03-19 22:45:57 -05:00