Commit Graph
15701 Commits
Author SHA1 Message Date
Jeong, YunWon 6561fb12da align overlapped to CPython 3.14.2 (#7005) 2026-02-05 23:38:35 +09:00
CPython Developers b5edbd0ca7 Update warnings from v3.14.2
Assisted-by: Codex:gpt-6
2026-02-05 21:54:56 +09:00
Shahar Naveh 57496bb9d7 Newtype LoadSuperAttr oparg (#7002) 2026-02-05 21:14:38 +09:00
Jeong, YunWon 8ffb8f5512 Update list-related CPython tests to v3.14.2 (#7000) 2026-02-05 20:30:17 +09:00
Shahar Naveh bbb6c66a29 Update pickle.py from 3.14.2 (#6982)
* Update `_compat_pickle.py` from 3.14.2

* Update `pickle.py` from 3.14.2

* Update pickletools and tests

* Update all other pickle related files

* Make `test_extcall` to use modified doctest checker
2026-02-05 19:27:10 +09:00
Jeong, YunWon 48e4e7c661 Implement more ast features (#6986)
Assisted-by: Codex:gpt-6
2026-02-05 16:20:22 +09:00
Jeong, YunWon c0a436ffbd command /apple-container (#6998)
Assisted-by: Codex:gpt-6
2026-02-05 10:20:48 +09:00
Jeong, YunWon 432fd7bd23 Merge pull request #6996 from youknowone/import
Update importlib from 3.14.2
2026-02-05 08:12:43 +09:00
Jeong, YunWon 4f893e45ca impl more importlib 2026-02-05 00:21:34 +09:00
CPython Developers 6202455032 Update importlib from v3.14.2 2026-02-05 00:21:34 +09:00
Jeong, YunWon c370438d81 non-code migration 2026-02-05 00:21:34 +09:00
Elmir 54ccf8be60 support | operation between typing.Union and strings (#6983)
* remove duplicated _call_typing_func_object() functions

Move _call_typing_func_object() code to
stdlib::typing::call_typing_func_object().
Use that function everywhere.

* support | operation between typing.Union and strings

Adds support for performing '|' operation between Union objects and
strings, e.g. forward type references.

For example following code:

    from typing import Union

    U1 = Union[int, str]
    U1 | "float"

The result of the operation above becomes:

   int | str | ForwardRef('float')
2026-02-04 23:49:36 +09:00
ShaharNaveh 17acf51a0d Update queue from 3.14.2 2026-02-04 18:32:45 +09:00
Jeong, YunWon bededc2c01 Add GC infrastructure: object tracking, tp_clear, and helper methods (#6994) 2026-02-04 18:29:09 +09:00
Jeong, YunWon c4dcbf1c27 Align winapi with CPython behavior (#6988) 2026-02-04 15:02:21 +09:00
dependabot[bot] 1d9bb0f54c Bump flate2 from 1.1.8 to 1.1.9 (#6991)
* Bump flate2 from 1.1.8 to 1.1.9

Bumps [flate2](https://github.com/rust-lang/flate2-rs) from 1.1.8 to 1.1.9.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases)
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.1.8...1.1.9)

---
updated-dependencies:
- dependency-name: flate2
  dependency-version: 1.1.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...
2026-02-04 14:30:59 +09:00
Jeong, YunWon 30abcac399 Merge pull request #6985 from youknowone/subprocess
Update subprocess from v3.14.2
2026-02-04 13:17:14 +09:00
dependabot[bot] 2348b5fb5b Bump bytes from 1.11.0 to 1.11.1 (#6987)
* Bump bytes from 1.11.0 to 1.11.1

Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: bytes
  dependency-version: 1.11.1
  dependency-type: indirect
...
2026-02-04 13:07:51 +09:00
Jeong, YunWon a48802553a Fix Context.new_bytes (#6989) 2026-02-04 13:07:16 +09:00
CPython Developers fd252a4e0c Update subprocess from v3.14.2 2026-02-04 11:16:15 +09:00
Jeong, YunWon e3b61994cc Remove _use_vfork 2026-02-04 11:15:58 +09:00
Jeong, YunWon fea26e456f impl more nt (#6984)
* mpl new features

* windows encodings

* impl nt functions

* revert

* codecs

* fix codecs
2026-02-04 09:53:02 +09:00
Jeong, YunWon 113beba163 Merge pull request #6958 from youknowone/os-posix
Update os from v3.14.2 and fix nt,posix,_os
2026-02-03 23:00:25 +09:00
Jeong, YunWon db45c07e77 rework SchedParam 2026-02-03 22:10:31 +09:00
Jeong, YunWon 9ccd5d6980 more windows impl 2026-02-03 22:10:31 +09:00
Jeong, YunWon 279f33a407 fix timeout 2026-02-03 22:10:31 +09:00
Jeong, YunWon b700593867 Fix windows link 2026-02-03 22:10:31 +09:00
CPython Developers 8e316a2255 Update os from v3.14.2 2026-02-03 22:10:31 +09:00
CPython Developers 4dad534ce0 Update test_posix from v3.14.2 2026-02-03 22:10:31 +09:00
Jeong, YunWon d7fd76014b fix durartion to round 2026-02-03 22:10:31 +09:00
Jeong, YunWon 7f69bde698 Populate _field_types with real type objects (#6981)
- Add FieldType enum and FIELD_TYPES static table mapping all
  AST node classes to their ASDL field types
- Resolve markers to real Python type objects (GenericAlias,
  Union, plain types) at module init in populate_field_types()
- Set class-level None defaults for optional fields
- Replace hardcoded LIST_FIELDS and class-name checks in
  slot_init with _field_types-based lookup
- Add expr_context default to Load(), fix ImportFrom.level
  default (now None instead of 0)
- Fix __class_getitem__ None check, compile() formatting
- Remove 14 @expectedFailure decorators from test_ast
2026-02-03 22:05:05 +09:00
Shahar Naveh da736dcf5f Update test_builtin.py from 3.14.2 (#6979)
* Update `test_builtin.py` from 3.14.2

* Mark haning/segfault tests

* Patch failing tests
2026-02-03 21:55:55 +09:00
Jeong, YunWon 2f59b7d7a6 Add GC infrastructure: tracking bits, tp_clear (#6977)
GC bit operations (_PyObject_GC_TRACK/UNTRACK equivalent):
- Add set_gc_bit() helper for atomic GC bit manipulation
- Add set_gc_tracked() / clear_gc_tracked() methods
- Update is_gc_tracked() to use GcBits::TRACKED flag
- Call set_gc_tracked() in track_object()
- Call clear_gc_tracked() for static types (they are immortal)

tp_clear infrastructure (for breaking reference cycles):
- Add try_clear_obj() function to call payload's try_clear
- Add clear field to PyObjVTable
- Add clear() method to PyType's Traverse impl
2026-02-03 20:00:34 +09:00
Jeong, YunWonandgithub-actions[bot] 5bd5b4634d Add __replace__ and fix __reduce__ for structseq (#6978)
* Add __replace__ and fix __reduce__ for structseq

- Add __replace__ method to PyStructSequence trait
- Move __reduce__ from #[pymethod] to extend_pyclass with
  contains_key guard, allowing per-type overrides
- Fix repr: remove trailing comma for single-field sequences

* Auto-format: cargo fmt --all

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-03 19:09:47 +09:00
Jeong, YunWon 3b956c8733 Support #[cfg] in with (#6975) 2026-02-03 18:55:59 +09:00
Jeong, YunWon 1509195429 Improve object traversal for heap types and mro (#6976)
- Fix heap type instance traversal to include type reference
  (enables correct cycle detection for instance ↔ type references)
- Enable mro traversal in PyType (was previously disabled)
2026-02-03 17:54:11 +09:00
Jeong, YunWon f0ac90b740 Merge pull request #6961 from youknowone/unparse
Update _ast_unparse and fix unparse, type_comments
2026-02-03 15:41:01 +09:00
github-actions[bot] 11c3e89c6d Auto-format: cargo fmt --all 2026-02-03 05:59:58 +00:00
Jeong, YunWon 0bd3cb79e1 Fix AST field defaults and compile() type check
- Extract empty_arguments_object helper from expression.rs
- Fix LIST_FIELDS ambiguity: "args" and "body" have different
  ASDL types per node (e.g. Lambda.args is `arguments`, not
  `expr*`; Lambda.body is `expr`, not `stmt*`)
- Replace class name string comparison in compile() with
  fast_isinstance to accept AST subclasses
2026-02-03 14:58:43 +09:00
Jeong, YunWon 8e0174e181 mark ast & test_genericalias 2026-02-03 14:16:10 +09:00
CPython Developers 36917341cf Update _ast_unparse from v3.14.2 2026-02-03 14:16:10 +09:00
Jeong, YunWon 662b72d824 fix ast fields including type_comments 2026-02-03 14:16:10 +09:00
Jeong, YunWon 7beb39af29 Fix compiler panics 2026-02-03 14:16:10 +09:00
Jeong, YunWon 60d6191e45 fix unparse 2026-02-03 14:16:10 +09:00
Jeong, YunWon 72ca48d17e --exclude rustpython-venvlauncher 2026-02-03 14:16:10 +09:00
Noa ee38687fb5 Switch to Cell::update, slice::{split_first_chunk,split_off}, where appropriate (#6974)
* Use Cell::update, slice::{split_first_chunk,split_off}

* Use more array -> slice methods
2026-02-03 13:45:03 +09:00
Jeong, YunWon 4594e2d45a Merge pull request #6949 from youknowone/faulthandler
Update faulthandler to 3.14.2
2026-02-03 13:43:25 +09:00
Jeong, YunWon 527ae55a7a Update faulthandler to match CPython 3.14.2
- Rewrite faulthandler with live frame walking via
  Frame.previous AtomicPtr chain and thread-local
  CURRENT_FRAME (AtomicPtr) instead of frame snapshots
- Add signal-safe traceback dumping (dump_live_frames,
  dump_frame_from_raw) walking the Frame.previous chain
- Add safe_truncate/dump_ascii for UTF-8 safe string
  truncation in signal handlers
- Refactor write_thread_id to accept thread_id parameter
- Add SA_RESTART for user signal registration, SA_NODEFER
  only when chaining
- Save/restore errno in faulthandler_user_signal
- Add signal re-entrancy guard in trigger_signals to
  prevent recursive handler invocation
- Add thread frame tracking (push/pop/cleanup/reinit)
  with force_unlock fallback for post-fork recovery
- Remove expectedFailure markers for now-passing tests
2026-02-03 13:41:58 +09:00
CPython Developers 6bf394d249 Update test_faulthandler from v3.14.2 2026-02-03 13:41:15 +09:00
dependabot[bot] 618e5c052e Bump pyo3 from 0.27.2 to 0.28.0 (#6966)
* Bump pyo3 from 0.27.2 to 0.28.0

Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.27.2 to 0.28.0.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.27.2...v0.28.0)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-version: 0.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...
2026-02-03 13:33:25 +09:00