Rafael Fontenelle
f39e00f952
GH-103484: Docs: add linkcheck allowed redirects entries for most cases ( #103569 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-04-18 05:57:53 +03:00
Skip Montanaro
e35e0f15eb
gh-67230: update whatsnew note for csv changes ( #103598 )
2023-04-17 21:21:19 -04:00
Nikita Sobolev
b57f55c23e
gh-103449: Fix a bug in dataclass docstring generation ( #103454 )
2023-04-17 17:33:22 -06:00
AN Long
d83faf7f1b
gh-103092: Isolate winreg ( #103250 )
2023-04-17 12:30:48 -06:00
Steve Dower
eb5fd31948
gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)
...
Also touches the affected files in meaningless ways to ensure they get updated when pulling
2023-04-17 17:33:54 +01:00
Dong-hee Na
5d9762e7cf
gh-101525: Fix make test if the --enable-bolt enabled (gh-103574)
2023-04-17 23:14:18 +09:00
Ezio Melotti
76933df10a
Remove `expert-*` from `project-updater` GH workflow ( #103579 )
2023-04-17 06:26:22 +03:00
Erlend E. Aasland
217911ede5
gh-103583: Add codecs and maps to _codecs_* module state ( #103540 )
2023-04-17 02:41:25 +02:00
Giampaolo Rodola
ff3303e49c
gh-48330: address review comments to PR-12271 ( #103209 )
...
address review comments to PR-12271
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
2023-04-17 00:19:44 +02:00
Erlend E. Aasland
a210cac776
gh-103527: Add multibytecodec.h as make dep for _codecs_* ( #103567 )
2023-04-16 05:57:30 +02:00
Nikita Sobolev
4fe1c4b97e
gh-103553: Improve `test_inspect`: add more assertions, remove unused ( #103554 )
2023-04-15 13:48:31 -07:00
Barney Gale
0097c36e07
GH-103517: Improve tests for `pathlib.Path.walk()` (GH-103518)
2023-04-15 17:35:17 +01:00
chgnrdv
2b6f5c3483
gh-102114: Make dis print more concise tracebacks for syntax errors in str inputs ( #102115 )
2023-04-15 06:53:31 +01:00
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