Commit Graph
15080 Commits
Author SHA1 Message Date
Jeong, YunWon ee747134b5 signal timer (#6535)
* fix waitpid

* signal timer
2025-12-28 12:04:33 +09:00
Jeong, YunWon 527111bc98 PyWrapperDescrObject and rewrite toggle_slot (#6536)
* SlotFunc

* slotdef

* unify slots

* remove unsed slots
2025-12-28 11:44:36 +09:00
Jeong, YunWon 7edc3bba5d tp_itemsize (#6544) 2025-12-28 10:27:58 +09:00
Jeong, YunWon 012799f560 Fix enum and os.read related to signal (#6552)
* fix enum

* fix os.read to check signals
2025-12-28 10:13:03 +09:00
Jeong, YunWon fd6c548766 no redundant venvlauncher targets (#6554) 2025-12-28 09:08:16 +09:00
Jeong, YunWonandgithub-actions[bot] ce00640b22 fix input to check pty child (#6553)
* fix input to check pty child

* Auto-format: cargo fmt --all

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-28 09:08:03 +09:00
Jeong, YunWon 9b2ad34a08 check surrogates (#6547) 2025-12-28 00:06:29 +09:00
Jeong, YunWon 5b20c458af Implement more except* (#6545)
* clean build documentation

* SetExcInfo

* fix EG subclass

* test_except_star
2025-12-27 23:03:23 +09:00
Shahar Naveh 8d9002800e Update test_dis.py from 3.13.11 (#6528) 2025-12-27 22:53:37 +09:00
Jeong, YunWon 75ecd72428 test_builtin.test_import (#6546)
* fix warnings

* fix test_import
2025-12-27 21:38:12 +09:00
27ab62de48 Prevent __class__ reassignment across incompatible layouts (#6521)
---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-12-27 01:16:09 +09:00
a7d7f81ca7 Handle unions with GenericAlias subclasses without TypeError (#6540)
---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-12-27 01:13:20 +09:00
Shahar Naveh b704f42158 Reduce usage JumpIfTrueOrPop & JumpIfFalseOrPop opcdes. Refactor compile_compare (#6524)
* Remove `JumpIfTrueOrPop` & `JumpIfFalseOrPop` opcdes

* Use correct instruction name

* Extract `compile_cmpop` to its own method

* Better alignment with CPython code

* Restore `PopJumpIf` instructions

* Revert PopJumpIfFalse for comparisons
2025-12-27 00:16:16 +09:00
Jeong, YunWon 7f4d308efc Implement maybe_pyc_file and .pyc file execution (#6539)
* Implement maybe_pyc_file and .pyc file execution

* unmark failing tests
2025-12-26 22:13:00 +09:00
Jeong, YunWon 4a6e8fb29e Add except* support (#6530) 2025-12-26 21:54:23 +09:00
Jeong, YunWon 57b4b4ae45 fix sys path (#6537) 2025-12-26 21:43:00 +09:00
Jeong, YunWon 1856415196 Fix f-string conversion flag ValueError when compiling AST (#6533) (#6534)
The ast_from_object for ConversionFlag was using bytecode::ConvertValueOparg::from_op_arg()
which only accepts internal oparg values (0, 1, 2, 3, 255), but Python's AST uses ASCII codes
('s'=115, 'r'=114, 'a'=97, -1=None).

This caused compile() on parsed AST with conversion flags to fail with "invalid conversion flag".
2025-12-26 21:38:05 +09:00
Jeong, YunWon 72a90da13b increase timeout-minutes to 45 (#6541) 2025-12-26 20:39:48 +09:00
Jeong, YunWon c9bf8df19c copyslot for init (#6515) 2025-12-26 09:46:33 +09:00
Jeong, YunWon ae39b132e4 impl more ntpath (#6531) 2025-12-26 09:43:01 +09:00
Jeong, YunWon 21f24cdcc7 impl more winapi (#6529) 2025-12-26 01:37:21 +09:00
Jeong, YunWon 40acd55290 venvlauncher (#6527) 2025-12-26 01:29:58 +09:00
Jeong, YunWon 2063c1e0bc Implement winapi.GetLongPathName (#6525) 2025-12-25 22:37:59 +09:00
Shahar Naveh bcdf37bef1 Align opcode names in dis (#6526)
* opcodes dis repr like cpython. POP-> POP_TOP

* Adjust frame.rs

* Fix codegen

* snapshots

* Add doc for `PopTop`

* fix jit
2025-12-25 22:17:31 +09:00
61ddd98b89 Handle missing type_params on AST Function/Class/TypeAlias nodes (#6512)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-25 19:08:23 +09:00
a5a1173c3f Disallow rebinding __module__ on immutable builtins and add regression snippet (#6513)
* Initial plan

* Fix __module__ setter on immutable builtin types

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

* Remove unused value parameter from immutability helper

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

* Auto-format: cargo fmt --all

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-25 18:27:19 +09:00
Jeong, YunWon 151f0746a3 Implement copyslot (#6505) 2025-12-25 16:56:41 +09:00
Jeong, YunWon aaecdd1747 repr for getset (#6514) 2025-12-25 16:55:19 +09:00
Jeong, YunWon 7eb0fe4984 Fix potential deadlock (#6509) 2025-12-25 15:49:44 +09:00
8443b2c97e Add POSIX shared memory module for multiprocessing on Unix (#6498)
---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-25 14:54:44 +09:00
Jeong, YunWon 92acf339a1 fix pyexpat hang (#6507) 2025-12-25 13:31:29 +09:00
Jeong, YunWon 49dbbbd5b9 Fix SSL test_preauth_data_to_tls_server (#6508) 2025-12-25 13:28:50 +09:00
Jeong, YunWon aae6bf566f Add tp_str (#6495)
* clean up hash

* __str__ slot wrapper
2025-12-25 11:00:53 +09:00
Copilotandyouknowone 6dbc8f0cfa Set SourceFileLoader for script execution in run_simple_file (#6496)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
2025-12-25 10:33:22 +09:00
Jeong, YunWon 5122aed738 Fix install ujson (#6502) 2025-12-25 10:32:51 +09:00
Copilotandyouknowone ebdc033c59 Bundle Lib directory in GitHub releases (#6497)
* Initial plan

* Add Lib directory archives to release workflow

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

* Add release notes explaining users need both binary and Lib archive

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

* Remove unnecessary --notes-start-tag parameter

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

* Only create zip archive, remove tar.gz

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
2025-12-25 09:48:20 +09:00
Jeong, YunWon 7ebb0f0c5c impl path_converter and os functions (#6484)
* os.setpgrp

* tcgetpgrp

* impl more os functions

* impl PathConverter
2025-12-25 09:21:09 +09:00
72cf6c36d5 Add missing xmlparser attributes: namespace_prefixes, ordered_attributes, specified_attributes, intern (#6494)
* Add namespace_prefixes and other missing xmlparser attributes

- Added namespace_prefixes, ordered_attributes, specified_attributes (boolean attributes)
- Added intern dictionary attribute
- Added stub handlers for all missing handler types to ensure compatibility
- Created bool_property macro to ensure boolean attributes are converted correctly

* Remove expectedFailure decorators from passing tests

- Tests for buffer_text, namespace_prefixes, ordered_attributes, and specified_attributes now pass

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-25 09:09:58 +09:00
Copilotandyouknowone be9e44aafb Allow SyntaxError.msg to be writable and reflected in string formatting (#6493)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
2025-12-25 09:08:18 +09:00
Jeong, YunWon cbde5ce321 iter with slot-wrapper (#6488) 2025-12-24 23:35:35 +09:00
Jeong YunWon c2a7393191 uniform __str__ 2025-12-24 22:23:43 +09:00
Jeong YunWon a4e60f569e repr 2025-12-24 22:23:43 +09:00
Shahar Naveh 7c3bc5ed8d Update test_http_cookies.py from 3.13.11 (#6481)
* Update `test_http_cookies.py` from 3.13.11

* Mark failing test

* Update `http/cookies.py` from 3.13.11

* Unmark passing test

* Lower amount
2025-12-24 19:45:48 +09:00
Shahar Naveh 9d1477699c Update test_threading_local.py from 3.13.11 (#6482)
* Update `test_threading_local.py` from 3.13.11

* Mark failing test
2025-12-24 18:57:00 +09:00
Jeong, YunWon c4e77287d1 __hash__ to slot_wrapper (#6480) 2025-12-24 18:56:47 +09:00
Jeong, YunWon 3d7e521acd introduce slot_wrapper (#4884) 2025-12-24 17:29:47 +09:00
Jeong, YunWon 4f0b940b16 impl preexec_fn (#6479) 2025-12-24 17:02:21 +09:00
Jeong, YunWon 309b2ad32d Fix ast end_location (#6478) 2025-12-24 16:54:54 +09:00
Jeong, YunWon 014622ac34 Fix os.access not to raise exception when path doesn't exist (#6477)
* Fix os.access not to raise exception when path doesn't exist

* add test
2025-12-24 14:23:33 +09:00
Jeong, YunWon c763d67ef4 Fix dict.keys behavior (#6476) 2025-12-24 13:50:26 +09:00