11487 Commits

Author SHA1 Message Date
Michael J. Sullivan
da0d59436e PEP 827: Produce errors for invalid type operations (#4914)
* PEP 827: Produce errors for invalid type operations

Currently the PEP calls for returning `Never`.

* a bit more explicit discussion
2026-05-13 15:55:06 -07:00
Michael J. Sullivan
4e806c4103 PEP 827: Swap out the numpy-like example for zip (#4921) 2026-05-13 15:54:51 -07:00
Hugo van Kemenade
0cde95da65 PEP 745: 3.14.5 released on 2026-05-10 (#4967) 2026-05-10 15:57:26 +03:00
Hugo van Kemenade
78a8343561 PEP 830: Target Python 3.16 (#4966) 2026-05-08 12:16:14 -07:00
Diego Russo
19f5087ef5 Add Diego as author of PEP 831 (#4964) 2026-05-08 12:52:48 +01:00
Peter Bierma
bb9c9442fe PEP 797, 828: Defer to 3.16 (#4963) 2026-05-07 20:12:13 +00:00
Zachary Ware
547d27b8fc PEP 790, 826: Update 3.15/3.16 branch and status (#4962)
Followup to #4961.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-05-07 17:01:38 +00:00
Peter Bierma
2617dd2361 PEP 788: Mark as Final (#4959)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-05-07 16:30:02 +00:00
Hugo van Kemenade
b70c96eb84 PEP 790, 826: 3.15 b1 is out, 3.16 dev has begun (#4961) 2026-05-07 19:28:01 +03:00
Stan Ulbrych
316adddff1 PEP 811: Mark as 'Active' (#4950) 2026-05-07 16:57:48 +03:00
Hugo van Kemenade
c093d5f00c PEP 745: Move 3.14.5 final to Sunday 2026-05-10 (#4957) 2026-05-06 18:12:22 +03:00
Teon L Brooks
a69aa6bddd PEP 783: Fix typos (#4956)
Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-05-06 06:19:40 +00:00
Hugo van Kemenade
3fcfc31cc8 PEP 790: Move 3.15 b1 to Thursday 2026-05-07 (#4955) 2026-05-05 19:00:43 +03:00
Victorien
facf5b458c PEP 810: Fix markup of note (#4951) 2026-05-04 23:58:48 +01:00
Hugo van Kemenade
b8653e0cdf PEP 745: Add 3.14.5rc1 release (#4953) 2026-05-05 00:40:48 +03:00
Hugo van Kemenade
8785979e7e PEP 745: Add 3.14.5rc1 and early 3.14.5 (#4948) 2026-05-01 18:38:29 +03:00
dependabot[bot]
1e4bce3891 Bump the actions group with 2 updates (#4949)
Bumps the actions group with 2 updates: [j178/prek-action](https://github.com/j178/prek-action) and [codecov/codecov-action](https://github.com/codecov/codecov-action).


Updates `j178/prek-action` from 2 to 2.0.2
- [Release notes](https://github.com/j178/prek-action/releases)
- [Commits](https://github.com/j178/prek-action/compare/v2...v2.0.2)

Updates `codecov/codecov-action` from 5 to 6
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: j178/prek-action
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-01 18:53:51 +08:00
Savannah Ostrowski
5874dbf93f Mark 831 as accepted (#4947) 2026-04-30 23:35:28 +01:00
Hugo van Kemenade
b6cbd1e405 PEP 822: Target Python 3.16 (#4941) 2026-04-30 12:54:32 +03:00
Petr Viktorin
d9c120f63c PEP 820: Mark Accepted (GH-4939)
- Mark Accepted
- Limit deprecation warnings to new API, per SC request
- Fix code example & typo
2026-04-29 11:52:40 +02:00
Hugo van Kemenade
0b2298a63f Infra: replace deprecated action with RtD app (#4946) 2026-04-28 16:37:39 -07:00
William Woodruff
4bd72c166d PEP 833: add some qualifying language (#4944) 2026-04-28 19:13:25 +03:00
Peter Bierma
9103e2ff57 PEP 788: Mark as Accepted (#4945) 2026-04-28 19:12:58 +03:00
jaimergp
0073a0be1f PEP 804: version 2, address all feedback received so far (#4749)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-04-28 15:01:03 +03:00
Hugo van Kemenade
32d8ef0911 PEP 661: Mark as Final (#4940) 2026-04-28 08:47:11 +03:00
Barry Warsaw
b4269b24f4 PEP 829: Accepted (#4937)
* Accepted

Also, updates based on SC acceptance feedback
Jelle's suggested clarification of the deprecation process

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2026-04-25 19:58:20 -07:00
Jelle Zijlstra
b167bc87fd PEP 661: Mark as Accepted (#4935) 2026-04-24 09:17:20 -07:00
Jelle Zijlstra
bcad7fc05c PEP 806: Mark as Rejected (#4934) 2026-04-23 21:36:37 -07:00
Brett Cannon
ab8bd9b792 PEP 832: Update the Post-History and fix the formatting of the Change History (#4936) 2026-04-24 04:28:14 +00:00
Brett Cannon
694086c010 PEP 832: Update based on feedback (#4933) 2026-04-23 17:29:04 -07:00
James Hilton-Balfe
17dcc42a85 PEP 718: Specify binding, parametrisation and overload interactions (#4649)
* hopefully final round of changes

* I think fix the build issues?
Sorry I can't test I can't get make installed

* Fix title too short

* fix some grammar typos and build

* Update peps/pep-0718.rst

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>

* final round of changes

* Split long sentence in two for style

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>

* Update pep-0718.rst

Adresed @gvanrossum comments

* Update pep-0718.rst

Small change

* fix line wrap

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* more line wrap

---------

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Pablo <48098178+PabloRuizCuevas@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-23 10:34:16 -07:00
William Woodruff
238e117e19 PEP 833: Address DPO feedback (#4932) 2026-04-23 19:47:12 +03:00
William Woodruff
528ab44afb PEP 833: Update Discussions-To and Post-History (#4931)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-04-21 18:15:25 +03:00
Malcolm Smith
55029d80ba PEP 101: Generalize Android wording to include other platforms (#4927) 2026-04-21 17:25:03 +03:00
William Woodruff
533e41f7e2 PEP 833: Freezing the HTML simple repository API (#4930)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-04-21 17:21:21 +03:00
Jelle Zijlstra
062108dc24 PEP 661: Update (#4923) 2026-04-21 06:34:36 -07:00
Bartosz Sokorski
e1c510a4ff PEP 747: Fix Sphinx warnings (#4908) 2026-04-21 11:54:17 +03:00
Gregory P. Smith
557f24e305 PEP 830: round 2 edits (#4928)
* PEP 830: Clarifications and format simplification from discussion feedback

- Clarified that __timestamp_ns__ is UTC, that clock-read failure yields 0,
  and how free-list and singleton MemoryError instances are timestamped.
- Clarified that str(exc) and repr(exc) are unchanged, and that the iso
  display format has microsecond resolution.
- Changed the ns display format from an integer with an ns suffix to seconds
  with nine decimal digits, allowing direct use with datetime.fromtimestamp().
  Dropped the us format; ns is now the default format when the feature is
  enabled via 1 or with no explicit format value.
- Added Rejected Ideas entries for returning None when unset and for using a
  coarse-resolution clock.
- Made the Motivation example self-contained.

* PEP 830: Reword Runtime API rejection

Frame it as an operator-level setting and note that runtime configurability
can be added later if there is demand.

* PEP 830: Add Traceback header placement rejection and Open Issues section

Explain why the timestamp is appended to the message line rather than the
Traceback header (the header is absent for exceptions without a traceback,
as with ProcessPoolExecutor's _RemoteTraceback), and add an Open Issues
section noting display location remains open to revision.

* PEP 830: Replace no_timestamp with tri-state timestamps parameter

Rename the traceback formatting parameter from no_timestamp (a
double-negative boolean) to timestamps, and make it tri-state: None follows
the global configuration (default), False suppresses, True displays any
non-zero __timestamp_ns__ regardless of the global setting.

* PEP 830: Note hasattr/getattr/dict-miss paths need no special handling

CPython's PyObject_GetOptionalAttr and the suppress paths in generic
attribute lookup already return "not found" without instantiating an
exception object, and the dict miss paths never create a KeyError
internally, so these idioms do not need to be excluded from timestamp
collection.

* PEP 830: Add sys.excepthook to Rejected Ideas

The hook fires at display time, once for the whole ExceptionGroup, so it
cannot record per-sub-exception creation times; caught exceptions never
reach it.

* PEP 830: Add instantiation vs. raise time rationale

Explain why the timestamp is recorded at instantiation rather than raise:
the two coincide in the common case, instantiation time is the more useful
value for re-raise and collect-then-group patterns, and instantiation has a
clean two-point funnel in CPython while raising does not. Defer "time of
first raise" to Open Issues.

* PEP 830: Add sys.monitoring to Rejected Ideas

Describe a viable third-party design using a RAISE callback and its costs:
per-frame (not per-exception) dispatch through vectorcall, instance dict and
PyLongObject (or list and string for add_note) allocation on every raise,
consuming a tool ID, and needing excepthook or a traceback monkeypatch to
display the attribute variant. Also describe a hybrid that keeps the struct
field and traceback display but uses monitoring for collection. Leave a
short Open Issues entry offering to prototype and benchmark if there is
demand.

* PEP 830: Editorial pass on round-2 additions

Break up two adjacent "rather than" pairs (Rationale and sys.monitoring
paragraphs) and reorder/consolidate the Change History bullets so spec
changes lead, followed by Rationale, a single Rejected Ideas bullet, a
single Open Issues bullet, and housekeeping.

* PEP 830: Rework Motivation example to actually produce multiple errors

The original TaskGroup example only ever produced one sub-exception because
TaskGroup cancels siblings on first failure. Switch to a three-backend
asyncio.gather(..., return_exceptions=True) pattern that collects every
failure, and replace the illustrative output with real output captured from
the reference implementation. Update the sys.excepthook rejection to drop
the now-stale TaskGroup reference.

* PEP 830: Tighten three Rejected Ideas / Open Issues entries

Shorten the None-when-unset and coarse-clock rejections, and replace the
"can be added later" closer in the time-of-first-raise open issue with a
note that early-construction patterns are not common in practice.

* PEP 830: Add round-2 discussion link to Post-History

* wording

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>

* specific times in the example descriptions

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>

---------

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2026-04-20 09:02:45 -07:00
Barry Warsaw
61230444e4 Describe encoding requirements
* Describe encoding requirements
* Change History date
2026-04-19 21:25:38 +00:00
Hugo van Kemenade
8ed08120c0 PEP 830: Formatting + typo + update name (#4900)
* Formatting

* Typo

* dcolascione -> +Daniel Colascione
2026-04-18 16:57:42 -07:00
Bartosz Sokorski
396a771f41 PEP 725: Fix Sphinx warnings (#4904) 2026-04-17 21:50:48 +01:00
Bartosz Sokorski
14fed3b26a PEP 615: Fix Sphinx warnings (#4905) 2026-04-17 16:56:52 +03:00
Bartosz Sokorski
b1d703c683 PEP 703: Fix Sphinx warnings (#4907) 2026-04-17 16:56:01 +03:00
Paul Moore
b0b1f2e048 PEP 708: Mark as Rejected (gh-4922) 2026-04-17 10:54:03 +01:00
Jelle Zijlstra
f44b2d33df PEP 800: Mark as Accepted (#4915) 2026-04-16 19:31:54 -07:00
Barry Warsaw
7cab606014 PEP 772: Accepted! (#4920)
PEP 772 is accepted
2026-04-16 13:01:44 -07:00
Brett Cannon
972ad519d6 PEP 831: Fix typo in JIT frame pointer explanation (#4919) 2026-04-16 11:57:17 -07:00
Barry Warsaw
697470bbcc PEP 829: Improve the guidelines for usage and build tools (#4918)
Improve the guidelines for usage and build tools
2026-04-16 17:37:15 +00:00
Barry Warsaw
d6bcdaf1a7 PEP 829: Update Post-History (#4917)
Update Post-History
2026-04-16 04:54:07 +00:00
Barry Warsaw
4a2c0b73e2 PEP 829: A few more updates (#4916)
A few more updates
2026-04-16 04:25:19 +00:00