Irit Katriel
60f2621456
PEP-654: add post-history date ( #1883 )
2021-03-20 12:39:19 -07:00
Tzu-ping Chung
e592c80c03
Also replace dots to match PEPs 425 and 427 ( #1882 )
2021-03-20 08:25:28 -07:00
Irit Katriel
021015be1f
PEP-654: implement new formatting in traceback.py. Fix a whitespace in c traceback ( #1878 )
2021-03-20 08:20:09 -07:00
Matthew Rahtz
89cb6aa8b9
PEP 646: Make explicit some more considerations of the motivation ( #1881 )
2021-03-20 08:07:04 -07:00
Tzu-ping Chung
f68daf1984
PEP 656: Clarification on platform definition and musl detection ( #1877 )
2021-03-19 14:24:02 -07:00
Irit Katriel
e31aab38ed
PEP-654: allow subclassing of exception groups ( #1872 )
2021-03-18 09:56:49 -07:00
Christian Heimes
96c1a37657
PEP 644: OpenSSL 1.1.1, CI proviers, Debian, SHA-3 (GH-1875)
2021-03-17 20:18:59 +01:00
Tzu-ping Chung
9ed544f00a
PEP 656: Platform Tag for Linux Distributions Using Musl ( #1876 )
2021-03-17 11:00:21 -07:00
Mark Shannon
54a16d60ef
Don't special case named tuples. The default behavior is fine. ( #1874 )
2021-03-16 11:15:21 +00:00
Irit Katriel
31d814345e
PEP-654: errors --> exceptions ( #1871 )
2021-03-15 13:17:05 -07:00
Batuhan Taskaya
a49056a590
PEP 601: remove email due to lexer bug ( #1870 )
2021-03-12 22:40:40 +03:00
Batuhan Taskaya
bbda897df1
PEP 601: fix lexing
2021-03-12 22:31:42 +03:00
Mark Shannon
3cc86339d2
PEP 653: Change semantics to be closer to PEP 634, while keeping the important features of PEP 653. ( #1868 )
...
* Change name of `MATCH_CLASS` to `MATCH_POSITIONAL`.
* Drop `__attributes__` and use `__match_args__` instead.
* For `MATCH_DEFAULT`, `__match_args__` acts a map from positions to names.
* For `MATCH_POSITIONAL`, `__match_args__` acts a map from names to positions.
* Change semantics of `MATCH_DEFAULT` when match class patterns to those of PEP 634.
* Update translations.
* Further expand examples
2021-03-12 18:01:08 +00:00
Sumana Harihareswara
5451f7963c
PEP 480: Fix status, author, discuss, reference ( #1693 )
2021-03-12 11:38:43 -05:00
Irit Katriel
d4d4fe7b6f
PEP 654: Use C traceback for some examples ( #1866 )
2021-03-11 12:52:05 -08:00
Mark Shannon
2aec45c8b8
PEP 653: Rephrase translations in terms of failure, rather than success, to make them easier to compose. ( #1865 )
2021-03-10 15:22:07 +00:00
Victor Stinner
c91e284b01
PEP 651 rejected by the SC ( #1864 )
2021-03-09 14:03:20 +00:00
Thomas Kluyver
9caeab3687
PEP 621: mention that '{name} <{email}>' may need quoting ( #1861 )
2021-03-08 12:58:17 -08:00
Irit Katriel
cf87703454
PEP 654: add to the rejected ideas section, following public discussion ( #1863 )
2021-03-08 09:23:30 -08:00
Matthew Rahtz
4506987f28
PEP 646: Make some final final readability improvements ( #1862 )
2021-03-08 07:16:27 -08:00
Christian Heimes
8ae39039a6
PEP 644: Mention Void and Gentoo changes (GH-1860)
...
Signed-off-by: Christian Heimes <christian@python.org>
2021-03-03 23:19:57 +01:00
Matthew Rahtz
b9b2d98165
Readability tweaks to PEP 646 ( #1859 )
2021-03-03 13:35:34 -08:00
Inada Naoki
b95c727b3e
PEP 597: Fix rest format. ( #1858 )
2021-03-03 12:22:59 +09:00
Brett Cannon
5a4ada6b84
PEP 621: mark as final ( #1857 )
2021-03-02 17:11:39 -08:00
Matthew Rahtz
b95239fef1
PEP 646: Update draft ( #1856 )
...
This is the more-or-less final version now. I'll do one last read-through to confirm everything's consistent, then post in typing-sig to confirm it's ready for the Steering Committee.
Semantic changes:
* Remove support for type variable tuples in `Union`. Apparently the implementation would be tricky in Pyre because of special-casing around `Union`. That could be evidence that it would be tricky in Mypy and pytype. Since we don't have a specific use-case in mind, I think this is fine.
* Support concatenation in `Callable`. Pradeep pointed ou that `ParamSpec` doesn't cover all potential use-cases because it doesn't support concatenating suffixes (in turn because `ParamSpec`s can contain keyword arguments, and concatenation is positional).
Readability changes:
* Remove the section on a full `Array` example. We've moved the important thing here - an explicit confirmation that `Array` can be generic in both datatype and shape - to the beginning of the PEP to make it more obvious. We've removed the `Ndim` thing after someone pointed out that e.g. `Ndim[Literal[2]]` would be incompatible with `Shape[Any, Any]`; I just don't think it's going to work. All that's left is the aliases, which we've moved into the Aliases section itself.
Other changes:
* Fill out Backwards Compatibility section.
* Reference initial CPython implementation.
2021-03-02 16:33:15 -08:00
Irit Katriel
a3f0183936
PEP 654: ExceptionGroup --> exception group in prose ( #1855 )
2021-03-01 20:00:23 -08:00
Brett Cannon
7d760822a3
PEP 1: Suggest people reach out to important projects to support their PEP's motivation ( #1842 )
2021-03-01 15:50:22 -08:00
Dustin Ingram
36c87838bc
PEP 541: New issue URL ( #1845 )
2021-03-01 15:47:03 -08:00
Irit Katriel
41886dd6b3
PEP 654: Tidy up leaf_generator example ( #1854 )
2021-03-01 15:41:37 -08:00
Irit Katriel
274670b330
PEP-654: Add example of subgroup callback with side effects ( #1852 )
2021-03-01 15:24:59 -08:00
Dave Brondsema
f69d426700
PEP 654: fix typos ( #1853 )
2021-03-02 07:54:10 +11:00
Pablo Galindo
53aef125a4
PEP 619: Update date for 3.10.0a6
2021-03-01 20:09:58 +00:00
Irit Katriel
9a1afd9a94
PEP 654: Add BaseExceptionGroup//ExceptionGroup split ( #1850 )
2021-03-01 10:19:06 -08:00
Irit Katriel
aea3cc1016
PEP-654: state in rationale the premise that the new features will be used selectively ( #1851 )
2021-02-28 20:19:13 -08:00
Sean Lockwood
c9f4cf2e8b
PEP 636 typo fix ( #1849 )
...
Fix minor typo:
"But **_ would be redundant, so it not allowed."
--> "But **_ would be redundant, so it is not allowed."
2021-02-27 14:28:46 -08:00
Jacob Walls
db3c43df95
PEP 618: Fix typo ( #1848 )
2021-02-28 03:12:04 +11:00
David Foster
c60ea16a48
PEP 655: Update Post-History ( #1847 )
2021-02-26 21:55:13 -08:00
Irit Katriel
31ba5bd70c
PEP 654: Explain why we did not extend except to handle ExceptionGroups ( #1846 )
2021-02-26 16:59:40 -08:00
Irit Katriel
afa1503545
PEP-654: simplify traverse() example ( #1844 )
...
We don't need to pass the cause and context from the root. The ones for the leaf are on the leaf exception itself.
2021-02-26 14:20:35 -08:00
Naren Santhanam
22114c7ba3
PEP 646: Fix quotes in example ( #1843 )
2021-02-26 14:13:44 -08:00
David Foster
ff3e7b1eb3
PEP 655: Marking individual TypedDict items as required ( #1829 )
2021-02-25 21:34:11 -08:00
Irit Katriel
d729120776
PEP 654: Add section about handling ExceptionGroups ( #1841 )
2021-02-25 18:49:58 -08:00
Thomas Kluyver
e93b2efdea
PEP 427: Point to spec on packaging.python.org (GH-1840)
2021-02-25 22:35:05 +00:00
Ken Jin
bff63f80cf
PEP 634: Fix error typo in mapping patterns (TypeError ->ValueError) (GH-1839)
2021-02-23 23:15:36 -08:00
Irit Katriel
13be7c414f
PEP 654: Clarifications after python-dev review ( #1838 )
...
- subgroup returns None for empty.
- except *(TypeError, ExceptionGroup) is forbidden.
2021-02-23 17:39:29 -08:00
Dennis Sweeney
05fe23f12b
PEP 616: Replace a misleading example ( #1837 )
...
* PEP 616: Remove misleading example
* Add a replacement example
2021-02-23 17:54:21 -05:00
Brett Cannon
579038f1d9
PEP 654: fix a grammar mistake
2021-02-23 11:55:29 -08:00
Irit Katriel
cbd46e4448
PEP 654: Add Post-History date ( #1834 )
2021-02-23 06:52:39 -08:00
Florian Bruhin
08d3be348f
PEP 0654: Fix typo ( #1835 )
2021-02-23 21:59:28 +11:00
Irit Katriel
e7193a3e63
PEP-654: fix level of subsection headings ( #1832 )
2021-02-22 15:24:40 -08:00