Commit Graph
15557 Commits
Author SHA1 Message Date
Padraic Fanning 6f9320bb11 Mark failing test 2026-01-31 15:21:00 -05:00
CPython Developers a8b0ffbfcb Update test_fork1 from v3.14.2-288-g06f9c8ca1c 2026-01-31 15:17:44 -05:00
Shahar Naveh c771427c38 Use stack_effect_info for getting pop&push count (#6913) 2026-01-31 23:45:46 +09:00
Jeong, YunWon ba8749b792 Align del behavior (#6772)
* slot_del

* refcount inc_by for atomicity

* temp patch multithreading

* apply review
2026-01-31 23:09:10 +09:00
Copilotandmoreal cdd47b6a59 Upgrade hmac to Python 3.14.2 (#6863)
---------

Co-authored-by: moreal <26626194+moreal@users.noreply.github.com>
2026-01-31 18:40:34 +09:00
fanninpm 10cbfa9361 Add f_trace_opcodes (#6911)
* Add f_trace_opcodes

Needed for bdb, and, by extension, pdb, to work.

* Fix compile error
2026-01-31 17:03:17 +09:00
Shahar Naveh 743d6b83d3 Split stack_effect into pushed & popped (#6893) 2026-01-31 16:58:14 +09:00
Lee Dogeon b1f158e5a8 Mark tests failing only in Windows 2026-01-31 10:11:58 +09:00
CPython Developers 31ee8b593f Update codecs from v3.14.2 2026-01-31 10:11:58 +09:00
Lee Dogeon 0c174624b4 Introduce /upgrade-pylib-next (#6827)
* Simplify upgrade-pylib.md by removing manual copy steps handled by quick command

* Let upgrade-pylib run auto-mark instead marking manually

* Let upgrade-pylib a separate commit from updating module

* Correct commands' permissions

* Add open PR check to upgrade-pylib-next command

* Fix dependency pattern example in upgrade-pylib-next command

* Let upgrade-pylib command to invetigate failing tests

* Add pre-commit review to invetigate-test-failure command

* Use deps command to get dependent tests in upgrade-pylib workflow
2026-01-31 07:40:39 +09:00
CPython Developers f6d562e2ee Update test_baseexception from v3.14.2 2026-01-31 07:14:37 +09:00
Jeong, YunWon 050faa312a Fix _overlapped segfault and missing _winapi constants
- Fix from_windows_err using new_exception_empty on OSError subclasses
  (ConnectionRefusedError, ConnectionAbortedError), which caused segfault
  in release builds due to debug_assert on type size mismatch
- Move ConnectPipe from instance method to module-level function
- Add Destructor for Overlapped to cancel pending I/O on object cleanup
- Add NMPWAIT_NOWAIT, NMPWAIT_USE_DEFAULT_WAIT, NMPWAIT_WAIT_FOREVER
  constants to _winapi
2026-01-31 06:39:32 +09:00
Jeong, YunWon adb7a91ec6 Merge pull request #6906 from ShaharNaveh/update-symtable
Update `symtable` from 3.14.2
2026-01-31 06:34:44 +09:00
5df67028ff Update test_exceptions from v3.14.2 (#6904)
* [update_lib] fix async detection

* Update test_exceptions from v3.14.2

* Update test_except_star from v3.14.2

* Update test_exception_hierarchy from v3.14.2

* Update test_exception_variations from v3.14.2

* Auto-format: ruff format

---------

Co-authored-by: CPython Developers <>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-31 06:30:06 +09:00
github-actions[bot] 9338509a71 Auto-format: ruff format 2026-01-30 20:50:37 +00:00
CPython Developers 980e76ea1f Update test_exception_variations from v3.14.2 2026-01-31 05:49:16 +09:00
CPython Developers cb138c8f37 Update test_exception_hierarchy from v3.14.2 2026-01-31 05:49:16 +09:00
CPython Developers 7cd55802f6 Update test_except_star from v3.14.2 2026-01-31 05:49:16 +09:00
ShaharNaveh ec906679b9 Update symtable from 3.14.2 2026-01-30 19:13:59 +02:00
CPython Developers 8265279411 Update test_exceptions from v3.14.2 2026-01-31 00:59:29 +09:00
Jeong, YunWon 922b644116 [update_lib] fix async detection 2026-01-31 00:59:29 +09:00
Jeong, YunWon 528d6573e0 [update_lib] Fix async func auto-mark (#6903) 2026-01-31 00:00:41 +09:00
Jeong, YunWon bb0a201502 Merge pull request #6901 from ShaharNaveh/update-decimal
Update `decimal` from 3.14.2
2026-01-30 23:41:34 +09:00
ShaharNaveh 6af0af2b3c Unmark passing test 2026-01-30 16:39:33 +02:00
ShaharNaveh a1b41ad2ad Update decimal from 3.14.2 2026-01-30 16:38:36 +02:00
Copilotandyouknowone 568f24cc84 Upgrade timeit module from Python 3.14.2 (#6854)
---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
2026-01-30 22:40:48 +09:00
Shahar NavehandCPython Developers 51701ab2a4 Update class related tests from 3.14.2 (#6900)
* Update `test_class` from 3.14.2

* Update test_genericclass

* Update test_subclassinit

* Add test_metaclass

* Patch `test_class`

* Patch test_subclassinit

* Patch `test_metaclass`

----

Co-authored-by: CPython Developers <>
2026-01-30 22:38:49 +09:00
Noa 276a4bdc80 Make paths in macro arguments relative to the source file, not MANIFEST_DIR (#6873) 2026-01-30 22:37:18 +09:00
Shahar Naveh 62c67546ac Update optparse,gettext,textwrap from 3.14.2 (#6896)
* Update optparse from 3.14.2

* Update `gettext`

* Update `textwrap`
2026-01-30 20:48:57 +09:00
Jeong, YunWon 9183661d88 Merge pull request #6899 from youknowone/weakref
Update weakref from v3.14.2
2026-01-30 20:47:53 +09:00
Shahar Naveh 75bcd24918 Update py_compile from 3.14.2 (#6897) 2026-01-30 19:24:33 +09:00
Jeong, YunWon 3daabbd2be Fix weakref 2026-01-30 19:21:10 +09:00
CPython Developers 0446bc71a0 Update weakref from v3.14.2 2026-01-30 19:21:10 +09:00
Jeong, YunWon 8e9d591369 Align GetAwaitable to Python 3.14.2 (#6895) 2026-01-30 12:13:39 +09:00
ShaharNaveh e4eb0a7116 Update fractions from 3.14.2 2026-01-30 07:48:29 +09:00
Jeong, YunWon 4ca2da4987 Merge pull request #6838 from youknowone/asyncio
Add _asyncio and add test_asyncio
2026-01-29 22:35:30 +09:00
Jeong, YunWon d0003f85c5 skip test_asyncio on windows 2026-01-29 22:13:26 +09:00
Jeong, YunWon 95abec4c21 More Load instructions including LoadLocals, LoadFastBorrow (#6886)
* fix stdlib_io

* more scpell dict

* LoadLocals

* LoadFastBorrow

* more ops
2026-01-29 19:33:46 +09:00
Jeong YunWon d8fa1b4366 _asyncio rust impl 2026-01-29 16:48:33 +09:00
CPython Developers 850a0a7847 test_asyncio from Python 3.14.2 2026-01-29 16:48:33 +09:00
Jeong YunWon aaa86584e5 Add _asyncio 2026-01-29 16:48:33 +09:00
Jeong YunWon 2e0b76556a Add more socket consts 2026-01-29 16:48:33 +09:00
Jeong, YunWon fcca0feb70 Add missing windows APIs 2026-01-29 16:48:33 +09:00
Jeong, YunWon e363b14e81 fix ssl MSG_PEEK (#6892) 2026-01-29 16:48:02 +09:00
Jeong, YunWon e2fda95f9a Merge pull request #6885 from youknowone/overlapped
impl more overlapped
2026-01-28 17:01:06 +09:00
Jeong, YunWon c3a5f9d5b2 cspell dict 2026-01-28 16:57:34 +09:00
Jeong, YunWon 0cc43e192c Implement Windows overlapped I/O for asyncio support
Add comprehensive Windows async I/O support to the overlapped module:

Winsock Extensions:
- Initialize AcceptEx, ConnectEx, DisconnectEx, TransmitFile via WSAIoctl
- Proper cleanup with all four extension locks checked

Overlapped Methods:
- ReadFile, ReadFileInto: Async file reading
- WriteFile: Async file writing
- WSARecv, WSARecvInto: Async socket receive
- WSASend: Async socket send
- WSARecvFrom, WSARecvFromInto: Async UDP receive with address
- WSASendTo: Async UDP send to address
- AcceptEx: Async socket accept
- ConnectEx: Async socket connect
- DisconnectEx: Async socket disconnect
- TransmitFile: Async file transmission over socket
- ConnectNamedPipe, ConnectPipe: Named pipe support

Module Functions:
- CreateIoCompletionPort: IOCP creation/association
- GetQueuedCompletionStatus: Dequeue completion packets
- PostQueuedCompletionStatus: Post completion packets
- RegisterWaitWithQueue: Register wait with completion port callback
- UnregisterWait, UnregisterWaitEx: Unregister waits with proper cleanup
- BindLocal: Bind socket to local address
- CreateEvent, SetEvent, ResetEvent: Event object management
- FormatMessage: Windows error message formatting

Safety & Correctness:
- Validate buffer contiguity before async operations
- Validate size parameters to prevent buffer overflow
- Use Arc for RegisterWaitWithQueue callback data to prevent UAF
  (callback may run after UnregisterWait returns per Windows API docs)
2026-01-28 16:56:47 +09:00
Jeong, YunWon d257d95362 set encodings for opcode_metadata scripts 2026-01-28 16:56:47 +09:00
Jeong, YunWon d2166dd93a Fix sorted() to use __lt__ instead of __gt__ (#6887)
* test

* Fix sorted() to use __lt__ instead of __gt__

CPython's sort uses __lt__ for comparisons, but RustPython was using
__gt__. This caused issues when only __lt__ was overridden on a
subclass (e.g., NamedTuple with custom __lt__), as it would fall back
to the parent class's comparison instead of using the overridden method.
2026-01-28 16:55:51 +09:00
Elmir 44c3179ae0 Docs: add reference to rustpython_derive close to example (#6882)
Include a link for native module macros documentation, after an
example where they are used.
2026-01-28 10:25:48 +09:00