Barney Gale
8af8f52d17
GH-78079: Fix UNC device path root normalization in pathlib (GH-102003)
...
We no longer add a root to device paths such as `//./PhysicalDrive0`,
`//?/BootPartition` and `//./c:` while normalizing. We also avoid adding a
root to incomplete UNC share paths, like `//`, `//a` and `//a/`.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
2023-04-14 21:55:41 +01:00
Tian Gao
7c1b0a46c6
gh-101517: Add regression test for a lineno bug in try/except* impacting pdb ( #103547 )
2023-04-14 21:40:31 +01:00
Erlend E. Aasland
3d71b5ec5e
gh-103527: Add make deps for _codecs_* and _multibytecodec ( #103528 )
2023-04-14 20:47:13 +02:00
Zachary Ware
95ee7c47ab
gh-103532: Fix reST syntax in NEWS entry (GH-103544)
2023-04-14 11:03:28 -05:00
Zachary Ware
e32c197ad3
gh-103532: Add NEWS entry ( #103542 )
2023-04-14 10:28:53 -05:00
Christopher Chavez
69e2c42f42
gh-103532: Remove TKINTER_PROTECT_LOADTK code (GH-103535)
...
This was only needed for Tk 8.4.13 and older,
but Tkinter already requires at least 8.5.12.
2023-04-14 09:04:16 -05:00
Nikita Sobolev
be8903eb9d
gh-103180: Add CI timeouts to all GitHub Actions jobs ( #103437 )
2023-04-14 12:01:10 +03:00
Ned Batchelder
1aa376f946
Remove double space in import error message ( #103458 )
2023-04-14 00:45:14 -07:00
Sergii Dymchenko
9cc1960df6
ipaddress: Remove non-existent ip_str param from docstring ( #103461 )
2023-04-14 00:44:10 -07:00
AN Long
282f0d26e3
Fix syntax typo in isolating extensions doc ( #103516 )
2023-04-14 00:40:25 -07:00
Nikita Sobolev
7569781176
gh-103406: Modernize pos-only arguments usage in `test_signature` ( #103407 )
2023-04-14 00:06:31 -07:00
Boris Verkhovskiy
a3d313a9e2
Proofread howto/perf_profiling.rst ( #103530 )
2023-04-13 20:07:49 -07:00
Benjamin Peterson
7b95d23591
Fix unused functions warnings in instrumentation.c (GH-103515)
2023-04-13 18:45:03 +01:00
Ethan Furman
a6f95941a3
gh-103479: [Enum] require __new__ to be considered a data type (GH-103495)
...
a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type
2023-04-13 08:31:03 -07:00
Ethan Furman
2194071540
gh-103365: [Enum] STRICT boundary corrections (GH-103494)
...
STRICT boundary:
- fix bitwise operations
- make default for Flag
2023-04-13 08:24:33 -07:00
Mark Shannon
efb8a2553c
GH-103488: Use return-offset, not yield-offset. (GH-103502)
...
* Use return-offset, not yield-offset, so that instruction pointer is correct when sending to a generator or coroutine.
2023-04-13 16:19:07 +01:00
Stanislav Syekirin
4307feaddc
gh-103088: Fix test_venv error message to avoid bytes/str warning (GH-103500)
2023-04-13 14:17:14 +01:00
Mark Shannon
70e0a28bed
GH-103082: Turn on branch events for FOR_ITER instructions. ( #103507 )
...
Turn on branch events for FOR_ITER instructions.
2023-04-13 13:56:09 +01:00
Tomas R
59e0de4903
gh-102978: Fix mock.patch function signatures for class and staticmethod decorators ( #103228 )
...
Fixes unittest.mock.patch not enforcing function signatures for methods
decorated with @classmethod or @staticmethod when patch is called with
autospec=True.
2023-04-13 08:37:57 +01:00
Ali-Akber Saifee
19d2639d1e
gh-103462: Ensure SelectorSocketTransport.writelines registers a writer when data is still pending ( #103463 )
2023-04-13 10:16:52 +05:30
Pradyun Gedam
9e677406ee
gh-95299: Rework test_cppext.py to not invoke setup.py directly ( #103316 )
...
* gh-95299: Rework test_cppext.py to not invoke setup.py directly
* Add tests/cppextdata data to `TESTSUBDIRS`
* Revert "Add tests/cppextdata data to `TESTSUBDIRS`"
This reverts commit 635492e539
.
* Revert "gh-95299: Rework test_cppext.py to not invoke setup.py directly"
This reverts commit 41c5a667b5
.
* Build and install the extension in a temporary directory instead
* Pull in wheels for setuptools and wheel for testing extension builds
2023-04-12 23:17:36 -05:00
Skip Montanaro
fb38c1b52e
gh-67230: document new csv quoting modes in whatsnew (gh-103491)
2023-04-12 20:45:52 -04:00
Skip Montanaro
330a942b63
gh-67230: add quoting rules to csv module (GH-29469)
...
Add two quoting styles for csv dialects.
They will help to work with certain databases in particular.
Automerge-Triggered-By: GH:merwok
2023-04-12 15:32:30 -07:00
Stanislav Syekirin
2b6e877767
gh-103088: Fix virtual environment activate script not working in Cygwin (GH-103470)
2023-04-12 21:11:50 +01:00
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