Nikita Sobolev
7f3c106503
gh-103326: Remove `Python/importlib.h` (GH-103331)
...
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-04-12 11:27:14 -07:00
Erlend E. Aasland
52f96d3ea3
gh-103092: Isolate `_collections` ( #103093 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-04-12 18:21:28 +05:30
Mark Shannon
411b169281
GH-103082: Implementation of PEP 669: Low Impact Monitoring for CPython (GH-103083)
...
* The majority of the monitoring code is in instrumentation.c
* The new instrumentation bytecodes are in bytecodes.c
* legacy_tracing.c adapts the new API to the old sys.setrace and sys.setprofile APIs
2023-04-12 12:04:55 +01:00
AN Long
dce2d38cb0
gh-103092: Isolate msvcrt ( #103248 )
2023-04-12 12:41:21 +02:00
Nick Burns
f2b7ecb778
gh-103417: use time.monotonic in the example for sched.scheduler ( #103418 )
2023-04-12 01:59:21 -07:00
Furkan Onder
d65ed693a8
GH-83893: Cross reference env. vars and -X command line options (GH-103414)
...
Co-authored-by: Erlend E. Aasland
2023-04-12 01:44:35 -07:00
Bar Harel
8f54302ab4
gh-103357: Add logging.Formatter defaults support to logging.config fileConfig and dictConfig (GH-103359)
2023-04-12 08:35:56 +01:00
Tian Gao
449bf2a76b
gh-103237: Polish pdb docs ( #103238 )
2023-04-11 23:18:34 -07:00
Tian Gao
2f41a009b7
gh-103143: Polish pdb help messages and doc strings (GH-103144)
...
* Made all the command part of the docstring match the official documentation
* Always have a space between the command and the description in docstring
* Added a helper function to format the help message
Before:
```
(Pdb) h a
a(rgs)
Print the argument list of the current function.
(Pdb) h commands
commands [bpnumber]
(com) ...
(com) end
(Pdb)
...
(Pdb) h interact
interact
Start an interactive interpreter whose global namespace
contains all the (global and local) names found in the current scope.
```
After
```
(Pdb) h a
Usage: a(rgs)
Print the argument list of the current function.
(Pdb) h commands
Usage: (Pdb) commands [bpnumber]
(com) ...
(com) end
(Pdb)
...
(Pdb) h interact
Usage: interact
Start an interactive interpreter whose global namespace
contains all the (global and local) names found in the current scope.
```
Automerge-Triggered-By: GH:brandtbucher
2023-04-11 15:40:30 -07:00
Benjamin Peterson
96663875b2
Remove redundant words from interpreter_definition.md. (GH-103455)
2023-04-11 15:30:05 -05:00
Irit Katriel
9db2db4fa4
gh-87092: fix refleak in peepholer test harness ( #103448 )
2023-04-11 21:08:29 +01:00
Stanislav Syekirin
ebc8103427
gh-103088: Sanitize venv paths when using MSYS or Cygwin Bash (GH-103325)
2023-04-11 20:20:46 +01:00
Barney Gale
b57105ae33
GH-103220: Fix `ntpath.join()` of partial UNC drive with trailing slash (GH-103221)
2023-04-11 17:26:45 +01:00
Nikita Sobolev
50b4b15984
gh-87864: Use correct function definition syntax in the docs ( #103312 )
2023-04-11 16:50:25 +03:00
Irit Katriel
55c99d97e1
gh-77757: replace exception wrapping by PEP-678 notes in typeobject's __set_name__ ( #103402 )
2023-04-11 11:53:06 +01:00
Alex Waygood
e071f00aae
gh-103373: `__mro_entries__` docs: improve cross references ( #103398 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-04-11 11:25:45 +01:00
Irit Katriel
21bea68e2e
gh-91276: remove unused _PyOpcode_RelativeJump ( #103156 )
2023-04-11 11:20:39 +01:00
Irit Katriel
33822d037a
gh-87092: move assembler related code from compile.c to assemble.c ( #103277 )
2023-04-11 11:15:09 +01:00
Irit Katriel
78b763f630
gh-103176: sys._current_exceptions() returns mapping to exception instances instead of exc_info tuples ( #103177 )
2023-04-11 09:38:37 +01:00
Irit Katriel
8026cda10c
gh-102828: set stacklevel on deprecation warning ( #103422 )
2023-04-11 09:31:39 +01:00
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