Commit Graph
350 Commits
Author SHA1 Message Date
Jeong, YunWon a7f2351244 Remove BEFORE_WITH,BINARY_SUBSCR (#6822) 2026-01-21 02:58:24 +09:00
Jeong, YunWon 274e8b4b6b Remove JUMP_IF_NOT_EXC_MATCH, SET_EXC_INFO (#6820) 2026-01-21 01:23:43 +09:00
Jeong, YunWon e0cceaf31c Remove ReturnConst/Break/Continue ops (#6816)
* Remove ReturnConst

* Remove break/continue ops
2026-01-21 00:03:43 +09:00
Jeong, YunWon 0f28d4e199 Merge pull request #6811 from youknowone/functools
Implement more functools features and Update functools from v3.14.2
2026-01-20 19:18:14 +09:00
Lee Dogeon 0cad3cb8b8 Use empty list as default according to Python.asdl (#6812)
* Use empty list as default in ClassDef.{bases,keywords}

* Unmark resolved tests

* Use empty list as default in FunctionDef.type_params

* Use empty list as default in ClassDef.type_params
2026-01-20 18:02:42 +09:00
Jeong, YunWon 4d27603cb5 fix functools.reduce 2026-01-20 17:32:52 +09:00
Jeong, YunWon b472e88caf classmethod/staticmethod __annotate__ 2026-01-20 17:32:52 +09:00
Jeong, YunWon f0c3e7d51f Remove SUBSCRIPT, JUMP_IF_{TRUE,FALSE}_OR_POP (#6810)
* Align ForIter behavior (incomplete)

* Romove JUMP_IF_{TRUE,FALSE}_OR_POP, subscript

* Remove LoadAssetionError

* Update snapshot for ForIter behavior change
2026-01-20 16:21:23 +09:00
Jeong, YunWon 25a3d6dde1 functools.Placeholder 2026-01-20 13:45:52 +09:00
Jeong, YunWon 6e842cf110 PyPartial::__get__ 2026-01-20 11:42:59 +09:00
github-actions[bot] 6f41a9491b Auto-format: cargo fmt --all 2026-01-20 10:59:47 +09:00
Jeong, YunWon 1740b083b8 namespace constructor and __replace__ 2026-01-20 10:59:47 +09:00
Jeong, YunWon 700b34adeb Hashable for PyMappingProxy 2026-01-20 10:59:47 +09:00
Jeong, YunWon bb72418d9e _typing.Union 2026-01-20 10:59:47 +09:00
Jeong, YunWon 2bbb3d07c6 _abc 2026-01-20 10:59:47 +09:00
Jeong, YunWon ef2c0a6d9d More FromArgs message (#6806) 2026-01-20 10:37:27 +09:00
Jeong, YunWonandCPython Devleopers 97167ab1cc Instruction 3.14 (#6805)
* renumber enum Instruction

* renumber magic

* Update test__opcode from 3.14.2

---------

Co-authored-by: CPython Devleopers <>
2026-01-20 03:52:52 +09:00
Jeong, YunWon b76906a8bf Add sys._stdlib_dir (#6798) 2026-01-20 03:38:40 +09:00
Jeong, YunWon 2da102fab8 FromArgs with error_msg (#6804) 2026-01-20 02:10:19 +09:00
Jeong, YunWonandgithub-actions[bot] 82a8f67c71 Replace custom opcodes with CPython standard sequences (#6794)
* Replace custom opcodes with standard sequences

Remove RustPython-specific opcodes (BuildListFromTuples,
BuildMapForCall, BuildSetFromTuples, BuildTupleFromTuples)
and replace their usage with CPython 3.14 standard opcode
sequences:

- BuildListFromTuples → BUILD_LIST + LIST_EXTEND loop
- BuildSetFromTuples → BUILD_SET + SET_UPDATE loop
- BuildTupleFromTuples → BUILD_LIST + LIST_EXTEND + CALL_INTRINSIC_1(ListToTuple)
- BuildMapForCall → DICT_MERGE loop

Implement missing opcodes:
- ListExtend: Extend list with iterable elements
- SetUpdate: Add iterable elements to set
- DictMerge: Merge dict with duplicate key checking

* Auto-generate: generate_opcode_metadata.py

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-20 00:34:46 +09:00
Jeong, YunWon d7a885cea8 sys._clear_type_descriptors (#6795) 2026-01-19 16:43:20 +09:00
Jeong, YunWon 6a064aad3b Drop for PySSLSocket (#6791) 2026-01-19 10:01:11 +09:00
Jeong, YunWon 130bb82a43 LoadClosure as pseudo op (#6789) 2026-01-19 02:45:00 +09:00
Jeong, YunWon 0717b53123 Align CallFunctionEx to 3.14 (#6786) 2026-01-19 00:37:18 +09:00
Jeong, YunWonandCPython Devleopers 3a9f020234 update test_sys from 3.14.2 (#6781)
* sys.is_remote_debug_enabled, supports_isolated_interpreters

* Update test_sys form Python 3.14.2

---------

Co-authored-by: CPython Devleopers <>
2026-01-18 23:58:39 +09:00
Jiseok CHOI 050db4725f sqlite3: fix Connection.cursor() factory argument handling (#6783)
Fix test_is_instance in CursorFactoryTests by properly handling the
factory argument in Connection.cursor() method. Now the factory can
be passed as both positional and keyword argument, and returns the
correct subclass type instead of always returning PyRef<Cursor>.

- Use FromArgs derive macro with CursorArgs struct for argument parsing
- Return PyObjectRef instead of PyRef<Cursor> to allow subclasses
- Use fast_issubclass to validate returned cursor is a Cursor subclass
- Properly differentiate between 'no argument' and 'None passed'
2026-01-18 23:37:47 +09:00
Jeong, YunWon 9301ae2746 traverse and clear (#6780) 2026-01-18 23:23:11 +09:00
Jeong, YunWon 252fa816d6 sys._jit (#6779) 2026-01-18 21:54:44 +09:00
Jeong, YunWon 6f266651c0 better ssl write handling (#6763)
* ssl_write

* Fix thread count timing
2026-01-18 21:10:35 +09:00
Jeong, YunWon f8a78e6ab6 stack soft limit (#6754) 2026-01-18 18:09:55 +09:00
Jeong, YunWon 1ccd99ea20 use ast namespace (#6769) 2026-01-18 17:30:36 +09:00
Jeong, YunWon eb50246b41 fix annotation (#6767) 2026-01-18 15:24:17 +09:00
Jeong, YunWon 7c7b824aa9 fix asyncgen finalizer (#6761) 2026-01-18 14:18:30 +09:00
fanninpmandJeong, YunWon e4ce70bbda Update Lib/warnings to CPython 3.14 (#6762)
* Update Lib/warnings to CPython 3.14

* Add context_aware_warnings setting

XXX- The default setting of this and thread_inherit_context should be
true.

* Unmark passing test

* Mark failing tests

* Skip failing test in test_sys for now

Updating test_sys to CPython 3.14 is beyond the scope of this PR.

* test_improper_option is fixed

---------

Co-authored-by: Jeong, YunWon <jeong@youknowone.org>
2026-01-18 13:59:49 +09:00
Jeong, YunWon abea6bd114 traverse for generator (#6760) 2026-01-18 09:36:09 +09:00
Jeong, YunWonandCPython Devleopers ca76cb7bb0 thread_inherit_context, upgrade threading & contextvar (#6727)
* thread_inherit_context

* Update contextvar, threading from CPython 3.14.2

* partially patch test_sys to 3.14.2

---------

Co-authored-by: CPython Devleopers <>
2026-01-18 08:53:41 +09:00
Jeong, YunWon 11c9b0e783 fix finalizing and atexit timing (#6626)
* fix finalizing and atexit timing

* fix shutdown
2026-01-18 01:54:16 +09:00
Jeong, YunWon 6df3753229 Py 3.14 changes fix (#6755)
* marshal v5

* conditional blclk

* fix jit don't use lossy string

* add varname

* symboltable takes responsibility of __debug__
2026-01-18 01:02:40 +09:00
Shahar Naveh 6dd5e36d02 Remove misleading placeholder comments (#6757) 2026-01-17 22:53:00 +09:00
Jeong, YunWon faeed2cdcc clean up 2026-01-17 19:22:18 +09:00
Jeong, YunWon 33689c1d0f Fix jit failure 2026-01-17 19:22:00 +09:00
Jeong, YunWon 566b6f438b PEP 649 annotation phase 4 2026-01-17 19:21:11 +09:00
Jeong, YunWon a78b569d92 PEP 649 annotation phase 3 2026-01-17 19:21:11 +09:00
Jeong, YunWon 353a9f6104 PEP 649 annotation phase 2 2026-01-17 19:21:11 +09:00
Jeong, YunWon 51b628642c PEP 649 annotation phase 1 2026-01-17 19:21:11 +09:00
Jeong, YunWon fdfede7545 fix win clippy 2026-01-17 19:21:11 +09:00
Jeong, YunWon 0793bd3d08 co_consts 2026-01-17 19:21:11 +09:00
Jeong, YunWon f5b44f505a Fix Exception.__init__ 2026-01-17 19:21:11 +09:00
Jeong, YunWon 24bff8d5bf fix unsigned validation 2026-01-17 19:21:11 +09:00
Jeong, YunWon eafa0c0149 Fix int rounding 2026-01-17 19:21:11 +09:00