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
fanninpm
4c1c704bb1
Add ExpatError and error to pyexpat ( #6889 )
...
* Stub out xml.parsers.expat.ExpatError
* Alias `ExpatError` to `error`
2026-01-28 10:19:00 +09:00
fanninpm
601b9d8984
Make issue_assign job run on ubuntu-slim runner ( #6890 )
2026-01-28 08:28:57 +09:00
Jeong, YunWon
5b7f93f6b6
Fix CI: cargo doc --lock ( #6888 )
...
* cargo doc --locked
* Update Cargo.lock
2026-01-27 21:51:48 +09:00
Jeong, YunWon
aa99c05231
Merge pull request #6870 from ShaharNaveh/update-dis-3-14-2
2026-01-27 13:20:39 +09:00
dependabot[bot]
364ddaab54
Bump cranelift from 0.127.2 to 0.128.0 ( #6877 )
...
* Bump cranelift from 0.127.2 to 0.128.0
Bumps [cranelift](https://github.com/bytecodealliance/wasmtime ) from 0.127.2 to 0.128.0.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/RELEASES.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/commits )
---
updated-dependencies:
- dependency-name: cranelift
dependency-version: 0.128.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com >
2026-01-27 13:20:06 +09:00
ShaharNaveh
253414f168
Update test_compiler_codegen and test_compiler_assemble
2026-01-27 10:49:05 +09:00
ShaharNaveh
7cc4f43779
Update test_peepholer from 3.14.2
2026-01-27 10:49:04 +09:00
dependabot[bot]
5a02051d68
Bump actions/checkout from 6.0.1 to 6.0.2 ( #6881 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Commits](https://github.com/actions/checkout/compare/v6.0.1...v6.0.2 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-27 09:58:52 +09:00
dependabot[bot]
4eb11ba940
Bump actions/setup-python from 6.1.0 to 6.2.0 ( #6880 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v6.1.0...v6.2.0 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-27 09:58:33 +09:00
Jeong, YunWon
edca32a194
Fix ssl shutdown ( #6871 )
...
* Fix ssl shutdown
* Fix thread
2026-01-27 02:50:15 +09:00
dependabot[bot]
93274d3888
Bump quote from 1.0.43 to 1.0.44
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: quote
dependency-version: 1.0.44
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-27 00:04:20 +09:00
dependabot[bot]
f548b3d71a
Bump thiserror from 2.0.17 to 2.0.18
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 2.0.17 to 2.0.18.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.17...2.0.18 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-version: 2.0.18
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 23:48:29 +09:00
dependabot[bot]
0dd73170e5
Bump openssl-probe from 0.2.0 to 0.2.1
...
Bumps [openssl-probe](https://github.com/rustls/openssl-probe ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/rustls/openssl-probe/releases )
- [Commits](https://github.com/rustls/openssl-probe/compare/0.2.0...0.2.1 )
---
updated-dependencies:
- dependency-name: openssl-probe
dependency-version: 0.2.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 23:47:39 +09:00
Jeong, YunWon
6a3643cdde
Improve deps output ( #6874 )
...
* Improve deps output: [x]/[ ] sync status, TODO counts
- Replace ambiguous [+] with [x] (synced) / [ ] (not synced)
- Add (TODO: n) suffix for test files with expectedFailure/skip markers
* Refactor update_lib: extract shared utilities
2026-01-26 18:35:35 +09:00
Jeong, YunWon
93b26bf595
Merge pull request #6869 from youknowone/opcode
...
Update opcode, dis from 3.14.2
2026-01-26 11:39:23 +09:00
Jeong YunWon
4b823ebaf5
mark test_dis failures
2026-01-26 10:40:23 +09:00
CPython Developers
131c296bb4
Update dis from v3.14.2
2026-01-26 10:40:22 +09:00
CPython Developers
0b806b9131
Update opcode from v3.14.2
2026-01-26 10:40:22 +09:00
Jeong YunWon
8c73f3cb30
emit RESUME
2026-01-26 10:40:22 +09:00
Jeong YunWon
9216500355
reimpl smallint
2026-01-26 10:40:22 +09:00
Jeong YunWon
b4d09e081d
get_common_constants
2026-01-26 10:40:22 +09:00
Noa
617cdc9724
Make validate_downcastable_from unsafe ( #6851 )
2026-01-26 10:39:08 +09:00
Noa
0a9d41d3dd
Depend on serde_core instead of serde ( #6872 )
2026-01-26 10:23:19 +09:00
Jeong, YunWon
7eceb145b1
more optimization ( #6860 )
2026-01-25 10:18:47 +02:00
CPython Developers
6595d50d18
Update test_apple from v3.14.2
2026-01-25 15:20:05 +09:00
Jeong, YunWon
9071147db5
[update_lib] Apply test grouping to deps ( #6867 )
...
* quick resolve test path too
* Fix migrate resolve
* Remove test/ from deps data
* resolve test to lib
2026-01-24 18:40:57 +02:00
Jeong, YunWon
4963cc659f
Merge pull request #6858 from youknowone/win-lib
...
Update urllib and windows libraries from v3.14.2
2026-01-25 00:19:44 +09:00
Jeong, YunWon
26d64b9fda
impl more msvcrt
2026-01-25 00:18:55 +09:00
CPython Developers
1251fbf0ba
Update test_msvcrt from v3.14.2
2026-01-25 00:18:55 +09:00
CPython Developers
3e39990503
Update test_winapi from v3.14.2
2026-01-25 00:18:55 +09:00
CPython Developers
4f1d191ca9
Update nturl2path from v3.14.2
2026-01-25 00:18:55 +09:00
Jeong, YunWon
2ac1b04914
Upgrade nt_path from v3.14.2
2026-01-25 00:18:55 +09:00
Jeong YunWon
448658e49d
Update urllib from v3.14.2
2026-01-25 00:18:55 +09:00
Shahar Naveh
77add04d3d
Update to ruff 0.14.14 ( #6861 )
2026-01-24 22:49:19 +09:00
Jeong, YunWon
f35791ec64
Fix update_lib tests ( #6866 )
2026-01-24 22:47:03 +09:00
Jeong, YunWon
e0e29260f5
Remove Copy from PyPayload
2026-01-24 22:03:30 +09:00
Jeong, YunWon
0cc8f63849
[update_lib] deps grouping ( #6854 )
2026-01-24 21:29:11 +09:00
Copilot
185f360fea
Update html module from Python 3.14.2 ( #6855 )
2026-01-24 19:12:23 +09:00
Copilot
f8d4d991f1
Upgrade zipimport to Python 3.14.2 ( #6857 )
2026-01-24 16:11:36 +09:00
Jeong, YunWon
483e4a2bab
Align psuedo ops to CPython 3.14.2 ( #6846 )
...
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Optimized attribute and super-attribute bytecode emission and
consolidated pseudo-instruction handling, improving consistency and
stack-effect accuracy.
* **Chores**
* Adjusted opcode constants and simplified opcode/name mappings.
* **New Features**
* Added a utility to enumerate special method names and a helper for
resolving dependency parent modules.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-24 16:10:36 +09:00
Jeong YunWon
c0bdb9a3e5
align psuedo ops to 3.14.2
2026-01-24 16:09:40 +09:00
Jeong YunWon
771650a012
align HAVE_ARGUMENT
2026-01-24 16:09:40 +09:00
Jeong, YunWon
691d2816f9
update_lib todo also shows test todo ( #6859 )
...
also tracking untracked files considered in #6775
2026-01-24 16:04:36 +09:00
Copilot
eedc70dfae
Upgrade cmd module from CPython v3.14.2 ( #6853 )
...
Upgrades the `cmd` module and its tests from CPython v3.14.2 tag.
2026-01-24 11:37:32 +09:00
Copilot
da41a0cb20
Upgrade quopri from Python 3.14.0 ( #6852 )
...
Upgrades the `quopri` module from Python 3.14.0 as part of the ongoing
standard library update effort.
## Changes
- Updated `Lib/quopri.py` from CPython v3.14.0
- Removed shebang line
- Changed file mode from executable to regular file
- No functional changes to the module
2026-01-24 10:57:22 +09:00
Noa
f842fbe25d
Use std::fmt::from_fn ( #6850 )
...
New in 1.93 - replaces our ad-hoc equivalent types.
2026-01-24 09:21:45 +09:00