Zac Hatfield-Dodds
4cd1cc843a
gh-99553: add tests for ExceptionGroup wrapping ( #99615 )
2023-04-10 23:44:53 -07:00
Hugo van Kemenade
280bd536b5
Docs: don't render files in includes/, they're for embedding only ( #103313 )
2023-04-11 09:17:34 +03:00
C.A.M. Gerlach
75b6ab80da
Doc: Avoid error lexing multiprocessing docs code block on Pygments 2.15.0 ( #103421 )
2023-04-10 20:57:36 -07:00
David Ellis
d034590294
gh-103000: Optimise dataclasses asdict/astuple for common types ( #103005 )
...
Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-10 22:50:58 +01:00
AN Long
f80014a9b0
gh-103092: Isolate winsound ( #103249 )
2023-04-10 23:01:05 +02:00
Erlend E. Aasland
5ed2f19b39
gh-83004: Harden winreg init ( #103386 )
2023-04-10 22:58:25 +02:00
Erlend E. Aasland
c3cd3d1078
gh-83004: Harden `msvcrt` init ( #103383 )
2023-04-10 22:39:33 +05:30
raylu
8b1b17134e
gh-103059: Clarify gc.freeze documentation ( #103058 )
2023-04-10 10:30:32 -06:00
Nikita Sobolev
40db5c65b7
gh-103334: Ignore `Tools/c-analyzer/cpython/_parser.py` from `patchcheck` (GH-103335)
...
I've also added a small comment to `Tools/c-analyzer/cpython/_parser.py` to trigger the `patchcheck` CI. It must pass now.
Automerge-Triggered-By: GH:ericsnowcurrently
2023-04-10 07:58:48 -07:00
Nikita Sobolev
dc604a8c58
gh-97797: Mention `__metadata__` in docstrings of `typing.{_AnnotatedAlias, Annotated}` ( #103405 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
2023-04-10 15:57:17 +01:00
Nikita Sobolev
a28e2ce3fb
gh-103395: Improve `typing._GenericAlias.__dir__` coverage ( #103396 )
2023-04-10 12:09:19 +01:00
James Hilton-Balfe
ecad802e3f
Fix old behaviour in typing documentation ( #103400 )
2023-04-09 22:55:32 +01:00
Erlend E. Aasland
6d97e52116
gh-83004: Harden winsound init ( #103385 )
2023-04-09 22:00:22 +02:00
Raymond Hettinger
f65fdbb8fd
Itertool recipe improvements (GH-103399)
2023-04-09 14:17:37 -05:00
Barney Gale
2c673d5e93
GH-101362: Omit path anchor from `pathlib.PurePath()._parts` (GH-102476)
...
Improve performance of path construction by skipping the addition of the path anchor (`drive + root`) to the internal `_parts` list. Rename this attribute to `_tail` for clarity.
2023-04-09 18:40:03 +01:00
Barney Gale
0a675f4bb5
GH-103379: Fix up old tests for `pathlib.PurePath._parse_path` (GH-103380)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-04-09 16:48:45 +01:00
Furkan Onder
8317d51996
Gh-68586: use run_python_until_end in test_capi (GH-102729)
...
Co-authored-by: Aidin Gharibnavaz
Automerge-Triggered-By: GH:kumaraditya303
2023-04-09 01:44:49 -07:00
Stepfen Shawn
45b4b37fc2
Remove useless symbol in pystats.h ( #101864 )
2023-04-09 14:13:21 +05:30
mara004
975d220bbe
ctypes docs: fix missing `not` in variadic functions section ( #102611 )
2023-04-09 13:56:52 +05:30
Oleg Iarygin
86d2044155
gh-103300: Fix `Popen.wait()` deadlock in patchcheck.py ( #103301 )
2023-04-09 13:48:53 +05:30
JakobDev
d9305f8e9d
Fix typos in test_tempfile.py ( #102841 )
2023-04-09 13:43:40 +05:30
dependabot[bot]
5d4afc45b9
build(deps): bump actions/stale from 7 to 8 ( #103169 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 7 to 8.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v7...v8 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-09 13:42:43 +05:30
Hugo van Kemenade
c330b4a3e7
Add hugovk as a .github code owner (GH-103394)
...
Automerge-Triggered-By: GH:hugovk
2023-04-09 00:43:01 -07:00
Hugo van Kemenade
090e26ea80
CI: Do not allow merge if labelled DO-NOT-MERGE ( #103337 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-04-09 09:39:03 +03:00
Irit Katriel
264b87f7fd
gh-102799: use `sys.exception()` instead of `sys.exc_info()` in pdb ( #103294 )
2023-04-09 07:35:50 +05:30
yuki
83af8f2686
Docs: Fix broken reference `__getitem__` in `string.rst` ( #103371 )
2023-04-09 07:32:16 +05:30
Kumar Aditya
63dc969ec6
Document `asyncio` performance improvement in What's New ( #103370 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-09 07:29:08 +05:30
Erlend E. Aasland
f329a8bc1e
gh-103092: Isolate `socket` module ( #103094 )
2023-04-09 06:33:52 +05:30
Dong-hee Na
35167043e3
gh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs ( #103378 )
...
Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs.
2023-04-08 10:56:42 -07:00
Alex Waygood
0ba0ca05d2
gh-103373: Improve documentation for `__mro_entries__` ( #103374 )
2023-04-08 15:09:00 +01:00
Hugo van Kemenade
b22d021ee6
gh-100176: Tools/iobench: Remove redundant compat code for Python <= 3.2 ( #100197 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-08 12:04:47 +03:00
Ezio Melotti
3310b94d3d
gh-100574: add examples/links to the `strptime`/`strftime` docs ( #100575 )
2023-04-08 11:46:47 +03:00
Adam Turner
1e9dfdacef
Docs: use Node.findall to avoid a deprecation warning ( #99403 )
2023-04-08 10:56:20 +03:00
C.A.M. Gerlach
a34c796238
gh-75729: Fix os.spawn tests not handling spaces on Windows ( #99150 )
...
* Quote paths in os.spawn tests on Windows so they work with spaces
* Add NEWS entry for os spawn test fix
* Fix code style to avoid double negative in os.spawn tests
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
---------
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-08 10:37:23 +03:00
Tomáš Hrnčiar
13774969f7
gh-102809: Remove gdbinit mention in Misc/README ( #103269 )
2023-04-08 00:04:23 -07:00
Russell Keith-Magee
26c65980dc
gh-103329: Add regression test for PropertyMock with side effect ( #103358 )
2023-04-07 20:09:00 -06:00
Erlend E. Aasland
91794e5873
gh-83004: Harden _socket init (GH-103261)
...
Automerge-Triggered-By: GH:erlend-aasland
2023-04-07 16:43:44 -07:00
Alex Waygood
644136563d
gh-74690: Document changes made to runtime-checkable protocols in 3.12 ( #103348 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-07 22:06:37 +01:00
sunmy2019
5d7d86f2fd
gh-103272: regression test for getattr exception in property ( #103336 )
2023-04-07 12:11:11 -07:00
Michał Górny
a90863c993
gh-100220: Fix error handling in make rules (GH-100328)
...
Set `SHELL = /bin/sh -e` to ensure that complex recipes fail on the first error rather than incorrectly reporting success.
Co-authored-by: Zachary Ware <zach@python.org>
2023-04-07 13:23:59 -05:00
Tian Gao
2667452945
gh-103225: Fixed zero lineno issue for pdb ( #103265 )
...
Co-authored-by: Artem Mukhin <ortem00@gmail.com>
2023-04-07 18:57:46 +01:00
Alex Waygood
800382a2b0
gh-74690: Add more tests for runtime-checkable protocols ( #103347 )
2023-04-07 18:21:19 +01:00
Alex Waygood
04501ee57e
gh-103193: Celebrate performance improvements to `inspect.getattr_static` in 'What's New in Python 3.12' ( #103349 )
2023-04-07 18:14:50 +01:00
AN Long
4dc339b4d6
GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813)
2023-04-07 12:56:00 +01:00
Nikita Sobolev
995386071f
bpo-46523: fix tests rerun when `setUp[Class|Module]` fails ( #30895 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2023-04-07 12:43:41 +02:00
Nikita Sobolev
059bb04245
gh-102213: Revert "gh-102213: Optimize the performance of `__getattr__` (GH-102248)" (GH-103332)
...
This reverts commit aa0a73d1bc
.
2023-04-07 17:22:36 +08:00
Dong-hee Na
efb0a2cf3a
gh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)
...
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-04-07 10:51:29 +09:00
Oleg Iarygin
f0424ba4b6
gh-103266: Fix a typo in example code for bisect() function ( #103267 )
2023-04-06 17:34:19 -07:00
AGZain
a653c32d08
gh-93121: fix test_mailbox where some test cases were accidentally dropped ( #93242 )
2023-04-06 23:19:11 +01:00
Brett Cannon
5d08c3ff7d
GH-102700: allow built-in modules to be submodules (GH-103162)
2023-04-06 14:19:54 -07:00