Commit Graph

15157 Commits

Author SHA1 Message Date
Jeong, YunWon
fd27c2d78f Fix SSL handshake partial send (#6635)
* simplify test_ftplib

* mark flaky test

* better ssl handshake, pending tls output

* flush_all_pending

* deadline

* flush pending
2026-01-04 17:53:59 +09:00
Jeong, YunWon
8bfe927de5 skip TestTLS_FTPClass (#6640) 2026-01-04 11:07:58 +09:00
Terry Tianlin Luan
68d65a7280 Updated token + weakref libraries + weakref test - v3.13.11 (#6633)
* Updated the token library

* Updated the weakref library

* Annotated the failing weakref test
2026-01-04 10:17:12 +09:00
Terry Tianlin Luan
f929a6eef8 Updated the platform + plistlib libraries + associated tests v.3.13.10 (#6611)
* Updated plistlib + test library

* Updated the platform library + test

* Re-added Rustpython platform version
2026-01-04 10:02:24 +09:00
Terry Tianlin Luan
4bec6bb6f9 Updated the pkgutil + unittest libraries + the pkgutil, unittest and import tests - v.3.13.11 (#6610)
* Updated unittest + tests

* Updated pkgutil + the associated test

* Updated test_import

* Fixed import + unittest test errors

* Updated test_dll_dependency_import with expectedFailure
2026-01-04 09:54:01 +09:00
Jeong, YunWon
eee360822c Rework compiler about exception handling (#6638)
* asyncgen

* fix coroutine

* rewrite compiler

* tests

* set pyc magic number
2026-01-04 09:15:38 +09:00
Terry Tianlin Luan
f0526b9e9a Updated the wsgiref + xmlrpc libraries + associated tests - v3.13.11 (#6634)
* Updated the wsgiref library + test

* Uncommented fixed wsgi tests

* Updated the xmlrpc library + test

* Added expectedFailure to test_request_length in test_wsgiref

* Annotated doc_xmlrpc test failures/errors
2026-01-03 16:29:10 +09:00
Terry Tianlin Luan
eea6cc49cb Update the signal + socket libraries + associated tests - v3.13.11 (#6631)
* Updated signal test library

* Update socketserve + test library

* Fixed test issues with mac

* Added sys import into ftplib

* Reverted ftplib test changes
2026-01-03 16:27:25 +09:00
Jeong, YunWon
cff37af5f6 Fix locale.getencoding, overlapped.getresult, chdir for windows (#6629)
* locale getencoding

* overlapped.getresult

* Fix windows chdir

* mark flaky
2026-01-03 11:43:29 +09:00
Terry Tianlin Luan
5ae75a679b Update the fractions and ftplib libraries + associated tests - v.3.13.10 (#6607)
* Updated ftplib + test library

* Updated fractions + test library
2026-01-03 08:28:25 +09:00
Terry Tianlin Luan
52dd8292c4 Updated enum + file_cmp library + tests - v3.13.10 (#6606)
* Updated enum library

* Updated filecmp + file_cmp test

* Removed unneeded @unittest.expectedFailures

* Updated unexpected success in enum test

* Fixed unexpected success in test_filecmp
2026-01-03 08:27:18 +09:00
Jeong, YunWon
0eddee500a fix fcntl, sslsocket traverse, super , excepthook (#6623)
* fix fcntl

* fix traverse

* fix super

* excepthook

* fix warn
2026-01-03 00:15:31 +09:00
Jeong, YunWon
546d35b8c1 impl multiprocessing SemLock (#6542) 2026-01-03 00:14:43 +09:00
Jeong, YunWon
346519bb6b Warn user not to override special magic methods (#6625) 2026-01-02 17:49:55 +09:00
Jeong, YunWon
32184103c3 ruff_source_file (#6624) 2026-01-02 13:14:39 +09:00
Jeong, YunWon
2e2924801c __{get,set,del}item__ without pymethods (#6622)
* __getitem__ without pymethod

* __setitem__ __delitem__ without pymethod

* sort slot names
2026-01-02 08:29:42 +09:00
Jeong, YunWon
1f8ef0aa36 sequence, mapping slots and fix separate __delitem__ slots (#6621)
* fix call

* Remove repr pymethod

* Remove __get__ and __set__ pymethod

* Remove __contains__ pymethod

* Remove __len__ pymethod

* mapping priors sequence

* fix ctypes
2026-01-02 00:35:59 +09:00
Jeong, YunWon
b19312b403 slot for numeric ops (#6619)
* fix sequence_repeat wrappers

* slot for numeric ops

* fix bpo-37619
2026-01-01 22:39:16 +09:00
Jeong, YunWon
d3e2fa47cc Remove wrong Deref (#6620) 2026-01-01 18:50:34 +09:00
Shahar Naveh
3e2ada0586 Update test_sys.py from 3.13.11 (#6428)
* mark RustPython as  free-threaded

* Py_GIL_DISABLED

* Update `test_sys.py` from 3.13.11

* mark tests

---------

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2026-01-01 18:35:55 +09:00
Shahar Naveh
b446dac359 Update shelve.py from 3.13.11 (#6483)
* Update `test_shelve.py` from 3.13.11

* Update `shelve.py` from 3.13.11
2026-01-01 17:15:00 +09:00
Jeong, YunWon
a445a22868 fix compiler (#6615) 2026-01-01 16:55:39 +09:00
Jeong, YunWon
020ff3058c update_sub_slot, __delitem__, no __bool__, missing rops (#6618)
* fix update_sub_slot

* Fix __setitem__ __delitem__ handling

* contains

* no __bool__ anymore

* Add rops to wrapper

* Remove pymethod from set

* remove len
2026-01-01 15:00:30 +09:00
Jeong, YunWon
e10dc94992 Fix stdio_encoding, stdio_errors (#6617)
* stdio_errors, stdio_encodings

* add ascii

* unmark tests
2026-01-01 14:48:27 +09:00
Jeong, YunWon
e58cf84c71 Update dbm from 3.13.11, implement sqlite3 autocommit (#6616) 2026-01-01 14:44:53 +09:00
Terry Tianlin Luan
a4df238b3d Updated the importlib + nturl2path + pathlib libraries + associated tests - v3.13.10 (#6609)
* Updated the nturl2path library

* Updated pathlib library + test

* Updated urllib test

* Added expectedFailure to failing tests

* Updated importlib library
2026-01-01 08:58:59 +09:00
Jeong, YunWon
1e706d911e Interpreter (#6614)
* Refine documentation in interpreter.rs

Improve InterpreterConfig with convenience methods (with_debug, add_path, add_paths), better documentation with working examples, refactored stdlib setup into focused functions, and comprehensive unit tests while maintaining 100% backward compatibility.

* Improve error message for non-Unicode paths

* Use consistent make_module naming in all doc examples

* cut useful changes

---------

Co-authored-by: Mohamed Gharbi <galaxysea777@gmail.com>
2025-12-31 22:14:28 +09:00
Shahar Naveh
6ccf3b5104 Update ruff to 0.14.10 (#6271)
* Update `ruff` to `0.14.10`

* Mark failing test
2025-12-31 21:13:29 +09:00
Jeong, YunWon
7c8df94f4e Fix __origname__ of frozen modules (#6613) 2025-12-31 21:12:21 +09:00
Jeong, YunWon
a8cfa36c8a Remove duplicated richcompare pymethods and add missing rops' wrapper, __getattr__, proper __bool__ impl (#6579)
* slots: remove duplicate pymethods from object

* Add missing __rmul__

* migrate __bool__

* subclass_update, __getattr__
2025-12-31 20:26:38 +09:00
Jeong, YunWon
d3afd465f3 fix concurrent socket close (#6612) 2025-12-31 17:52:24 +09:00
Jeong, YunWon
b3b97cac7c fix symtable for named_expressions (#6604)
* check duplicated type parameter

* typealias

* fix self.in_comp_inner_loop_target
2025-12-31 15:02:08 +09:00
Jeong, YunWon
01a5f94e7b Fix error / warning messages (#6594)
* fix functools.partial repr

* warn_deprecated_throw_signature

* fix function error messages
2025-12-31 15:01:55 +09:00
Terry Tianlin Luan
bd0aaf6f4f Updated the hmac + mailbox libraries + associated tests (#6608)
* Updated hmac + test library

* Updated mailbox library

* Added mailbox library test (v3.13.10)
2025-12-31 14:58:34 +09:00
dependabot[bot]
37c47fca6b Bump qs and express in /wasm/demo (#6603)
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.13.0 to 6.14.1
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.13.0...v6.14.1)

Updates `express` from 4.21.2 to 4.22.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v4.22.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.2...v4.22.1)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.1
  dependency-type: indirect
- dependency-name: express
  dependency-version: 4.22.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-31 12:02:47 +09:00
Ashwin Naren
4cf5697e06 Symboltable updates (#5861)
* symboltable updates

* Fix symboltable

---------

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-12-31 11:57:42 +09:00
Jeong, YunWon
00ae4a1751 enhance error codec and exit code (#6602) 2025-12-31 11:28:04 +09:00
dependabot[bot]
580f6e3f34 Bump cranelift-* from 0.126.1 to 0.127.0 (#6571)
Bumps [cranelift](https://github.com/bytecodealliance/wasmtime) from 0.126.1 to 0.127.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)

--------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.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>
2025-12-31 09:47:59 +09:00
Terry Tianlin Luan
cd012f9b2e Added doctest tests (#6598) 2025-12-31 09:43:10 +09:00
Terry Tianlin Luan
e22091ef60 Update straightforward packages Pt 1 (#6595)
* Deleted _pycodecs.py

* Updated code.py library

* Updated the _pydatetime.py lib

* Removed distutils package

* Updated doctest package

* * Updated datetimetester.py
* Added back in _pycodecs.py

* Used tool to verify datetimetester + test_code_module
2025-12-31 02:31:08 +09:00
Jeong, YunWon
6bf1ab65c0 Initiailzer for PyCStructure (#6586) 2025-12-31 01:58:34 +09:00
Vinh Nguyen
ca1c4c1f71 feat: Sync code.py + test_code_module.py from CPython v3.13.1 (#6181)
* feat: Sync code module from cpython 3.13

* also udpate test_code_module

---------

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-12-31 01:54:50 +09:00
Jeong, YunWon
b98f06214d Update issubclass and make mro representation fit to CPython (#5866) 2025-12-31 01:42:11 +09:00
Jeong, YunWon
9fcc471c94 Prevent tb_next loop (#6596) 2025-12-30 17:36:15 +09:00
Ashwin Naren
7b9f0d9657 More tkinter (#5784)
* fix build

* fix usage of Tcl_GetVar2Ex

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>

* no panic on mainloop

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>

* add static var

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>

* fix getvar

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>

* add globalgetvar support

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>

* formatting

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>

* address review

* fix build

* Auto-format: cargo fmt --all

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Co-authored-by: Jeong YunWon <jeong@youknowone.org>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-30 17:07:03 +09:00
Jeong, YunWon
e79a1a1a66 Fix traceback (#6569)
* Fix traceback

* Update traceback from CPython 3.13.11

* unmark test_traceback

* fix code

* fix debug range

* fix tests
2025-12-30 16:58:53 +09:00
Terry Tianlin Luan
6bd1d90b6a Updated bdb.py + test_bdb.py (#6593)
* Updated bdb.py + test_bdb.py

* Double checked test_bdb.py with the script
2025-12-30 16:35:58 +09:00
Jeong, YunWon
6ed0b4f0ac Add PythonFinallizationError and upgrade multiprocessing (#6592)
* PythonFinallizationError

* fix posixprocess

* upgrade multiprocessing from 3.13.11
2025-12-30 15:15:16 +09:00
Jeong, YunWon
dac236dac0 more no_std clippy (#6587) 2025-12-30 15:15:02 +09:00
Jack O'Connor
5e1fc93f50 Update zipfile to 3.13.5 (#6069)
* Add Lib/test/archiver_tests.py @ 3.13.5

Needed for updated zipfile tests.

* Update zipfile to 3.13.5

Notes:

- I have to skip some brand new tests due to shift_jis encoding not
being supported

- `test_write_filtered_python_package` marked as `expectedFailure` with
"AttributeError: module 'os' has no attribute 'supports_effective_ids'"
  - I didn't want to do a partial or full update to os module in this PR

---------

Co-authored-by: Jack O'Connor <jack@jackoconnor.dev>
2025-12-30 13:42:47 +09:00