Commit Graph

9823 Commits

Author SHA1 Message Date
Ed Swierk c8825e8551
PEP 227: Fix link to Cardelli paper (#2951) 2023-01-06 13:22:41 -06:00
Ken Jin b5d930c310
PEP 659: Mark's Paper was published in 2011, not 2010 (#2943) 2023-01-06 17:45:47 +00:00
Adam Turner 8d3c3fdedc
Cap Sphinx to 6.0.0 (#2950) 2023-01-06 16:50:42 +00:00
Philipp A 631ee6ce60
Infra: Only invert image brightness, not hue (#2949)
Since inversion doesn’t just affect brightness, but also hue, there’s a problem: Some background colors have perceptually less contrast with their text when hue rotated. This rotates their hue back, fixing the contrast issue.
2023-01-06 16:33:58 +00:00
Steven Troxler 32c692b214
PEP 698: discuss.python.org thread to post-history (#2948)
* PEP 698: discuss.python.org thread to post-history

As far as I know this is the last update needed ahead of SC
review.

* Also change the Discussions-To header
2023-01-04 11:00:29 -08:00
Jelle Zijlstra 2220d705a9
PEP 702: More discussion of precedent and runtime behavior (#2946)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-03 09:00:06 -08:00
Jelle Zijlstra d42d5a8a70
PEP 702: fix typos (#2945)
Pointed out by @hugovk on Discord.
2023-01-02 07:59:28 -08:00
Jelle Zijlstra f8f0f4acbc
PEP 702: Add link (#2944) 2023-01-01 16:22:04 -08:00
Jelle Zijlstra f668d6b846
PEP 702: Type system support for deprecations (#2942) 2023-01-01 16:01:08 -08:00
Franek Magiera e3010cb7d2
PEP 692: Abandon the syntax change proposal (#2941)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-12-29 13:56:28 -08:00
Batuhan Taskaya d1cfb37937
PEP 701: Mention about code generators (#2940) 2022-12-26 16:44:31 +00:00
Pablo Galindo Salgado d547ef7ef4
PEP 701: Incorporate feedback from the discussion thread (#2939)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-24 21:42:21 +00:00
Ken Jin 574e82c2f4
PEP 699: Follow standard deprecation policy (#2927)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-22 22:41:33 +08:00
Jelle Zijlstra 58d49df46a
PEP 688: Enhance and clarify the specification (#2917)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2022-12-20 09:58:44 -08:00
Dane Hillard f68b3c1898
PEP 701: Proofreading / copy editing (#2935) 2022-12-20 11:58:54 +00:00
Pablo Galindo Salgado 09032faf9b
PEP 701: Correct link to nested interpolation strings (#2933) 2022-12-19 23:10:00 +00:00
Paul Moore 805b973c1b
PEP 700: Mark as accepted (#2934) 2022-12-19 18:04:47 -05:00
Hugo van Kemenade 959416955f
PEP 690: Change status to rejected (#2930) 2022-12-19 10:02:06 -08:00
Pablo Galindo Salgado c8905d0d73
PEP 701: Add discussion link (#2932) 2022-12-19 17:59:15 +00:00
Hugo van Kemenade 68f55b3139
PEP 8104: No withdrawn nominations (#2926) 2022-12-18 12:59:50 +02:00
Ezio Melotti 89ed2e4597
PEP 562: Fix example by adding repr in an error message (#2928)
Fix example by adding repr in an error message.
2022-12-16 15:03:30 -08:00
Petr Viktorin aaede30578
PEP 620: Withdrawn rather than rejected (#2923)
When the author cancels a PEP, it's Withdrawn. The SC does rejections.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-16 15:03:18 -08:00
Pablo Galindo Salgado 9de4efd734
PEP 701: Add some clarifications to f-string debug expressions and tokens (#2929) 2022-12-16 21:41:26 +00:00
Ee Durbin b4d7ea782d
PEP 8104: Publish results (#2925) 2022-12-15 07:15:08 -05:00
Victor Stinner 5876867985
PEP 620: Rejected (#2922) 2022-12-13 16:38:41 +01:00
Victor Stinner 77018a2d5c
PEP 674: Deferred (#2921) 2022-12-13 16:35:25 +01:00
Brett Cannon e59744921b
PEP 691: Fix JSON example to be valid 2022-12-11 14:17:27 -08:00
Hugo van Kemenade 4a71d8757d
PEP 101: Remove reference to Zulip (#2918) 2022-12-07 16:56:14 -08:00
Jelle Zijlstra a73c0e9750
PEP 692: Add changing the meaning of `**kwargs` annotations to rejected ideas (#2916) 2022-12-07 11:49:09 -08:00
T. Wouters 53cdf55b7d
PEP 693: Update with the release date for 3.12.0a3 (#2914)
Update with the release date for 3.12.0a3.
2022-12-07 00:29:45 +01:00
Łukasz Langa 8ee1310b89
[pep-0569][pep-0596] Actual dates for 3.8.16 and 3.9.16 2022-12-06 23:52:00 +01:00
Pablo Galindo Salgado 191acabdb9
Update 3.11.1 and 3.10.9 release dates (#2915) 2022-12-06 22:38:52 +00:00
Ned Deily 1a43741bdf
3.7.15 (#2913) 2022-12-06 21:37:18 +00:00
Ken Jin 1a87312fb3
PEP 699: Make the spelling consistent (#2911) 2022-12-04 14:52:15 +08:00
Václav Brožík 94287a9288
PEP 485: Fix relative difference formula (#2909)
* PEP 485: Fix relative difference formula

The formula did not work correctly for negative (a+b) values.

* PEP 485: Fix grammatical typo

Grammatical typo close to the formula typo.
2022-12-03 13:59:14 -06:00
Pablo Galindo Salgado 242eb5f2fe
PEP 701: Syntactic formalization of f-strings (#2907)
Co-authored-by: Batuhan Taskaya isidentical@gmail.com
Co-authored-by: Lysandros Nikolaou lisandrosnik@gmail.com
2022-12-02 20:52:35 +00:00
Petr Viktorin fa143fa994
PEP 697: Changes based on initial implementation & docs (GH-2906)
* PEP 697: Changes based on initial implementation & docs

- Use a flag, `Py_TPFLAGS_ITEMS_AT_END`, rather than a slot. This way the subclass doesn't need to worry about items (if the superclass is set up right).
- The result of `PyObject_GetTypeDataSize` may be higher than requested by -basicsize (e.g. due to alignment). It is safe to use all of it (e.g. with memset).
- Mention that `basicsize == 0` and `itemsize == 0` already work. I’ll add explicit docs & tests though.
- Add link to initial implementation
- Add endorsements
- Add a “big picture” decision tree
- Rewording
- Mention possible flags for alternative item layouts

* Apply suggestions from code review

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-01 16:55:12 +01:00
Ee Durbin 1497f51408
PEP 8104: Final voter roll (#2908) 2022-11-30 09:28:50 -05:00
Ee Durbin 02d07ca846
PEP 8104: Nominations and Voter Roll (#2905) 2022-11-29 09:29:27 -05:00
Hugo van Kemenade 67512a10ea
Infra: Link status and type headers to descriptions (#2842)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-29 11:48:51 +02:00
Petr Viktorin 580f8e3c70
PEP 689: Updates from discussion & initial implementation (GH-2901)
The prefix is very visible, so:
- No opt-in macro
- No new Include/ subdirectory

Removed frame evaluation API: I haven't found a way to use it,
so I can't test it.

Mention that unstable API should be documented and tested.

Add link to rough reference implementation.
2022-11-28 15:27:37 +01:00
Ee Durbin 9d19f3952f
PEP-8104: Correct links for nomination/vote deadlines (#2903) 2022-11-28 14:20:14 +00:00
Matthew Rahtz 2ae3b71e21
PEP 646: Add section on type substitution in generic aliases (#2883)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-26 19:56:00 -08:00
C.A.M. Gerlach bc79b092c7
Meta: Update Contrib Guide & PR template for new CLA bot (#2900) 2022-11-25 15:07:16 -08:00
Victor Stinner 35dd6a15b3
Update PEP 674 (#2899)
* Set Python version to 3.12
* Update stats on top 5000 PyPI projects
* Complete Post History
2022-11-23 01:33:29 +01:00
Steven Troxler 6a72444a8e
PEP 698: reword "value add" -> "benefits" (#2897)
Maybe I've spent too much time in big-company roadmapping
meetings, I didn't used to accidentally say things like this :D
2022-11-20 17:36:35 -06:00
Steven Troxler d5b28cc9c1
PEP 698: reword the disadvantages section (#2894)
We claimed that there are two disadvantages to overrides:
it makes code more verbose, and requires developers to update
subclasses when possibly-breaking changes happen to base classes.

In discussion, it was pointed out that the second disadvantage is
kind of strange - it is exactly the same as the advantage of
using @override in the first place because the whole point is that
it is not usually safe to assume subclasses can be unchanged when
a method they override is removed from a base class.

I think just pointing out verbosity is good enough, I think it's
understood that more verbose code potentially requires more edits
to change, and in reality I think the case when it was safe to
ignore invalidated overrides is pretty rare so making that a big
focus seems a little weird.
2022-11-20 07:22:50 -08:00
Steven Troxler 337df6bef5
PEP 698: Include discussion of pinning the ancestor class (#2893)
This idea came up in the PEP discussion:
https://discuss.python.org/t/pep-698-a-typing-override-decorator/20839/4

We decided against it, but as promised I am including the idea
and potential upside as well as our rationale for not including
it in the "Rejected Alternatives" section.
2022-11-18 12:04:29 -08:00
tk-woven 686a5a9e21
PEP 698: fix typo enumerating runtime enforcement rejections (#2891) 2022-11-17 17:44:35 -08:00
James Hilton-Balfe 5fd06047be
PEP 484: Add missing def to NewType example function (#2890) 2022-11-16 14:15:09 -08:00