Kirill Podoprigora
2cd1c87d2a
gh-104456: Fix ref leak in _ctypes.COMError ( #104457 )
2023-05-14 21:05:35 +00:00
Sam Bull
fb8739f0b6
gh-98539: Make _SSLTransportProtocol.abort() safe to call when closed ( #104474 )
2023-05-14 11:58:13 -07:00
Terry Jan Reedy
88c5c58670
gh-104337: Clarify random.gammavariate doc entry ( #104410 )
...
* gh-104337: Clarify random.gammavariate doc entry
* Fix parameter markup.
2023-05-14 14:45:54 -04:00
Jelle Zijlstra
2f7b5e458e
Minor improvements to typing docs ( #104465 )
2023-05-14 12:53:15 +01:00
Dong-hee Na
178153c9a6
gh-87092: avoid gcc warning on uninitialized struct field in assemble.c ( #104460 )
2023-05-14 12:03:30 +01:00
Terry Jan Reedy
080a596152
GH-71383: IDLE - Document testing subsets of modules ( #104463 )
2023-05-13 23:55:20 -04:00
Charles Machalow
7d2deafb73
gh-104454: Fix refleak in AttributeError_reduce ( #104455 )
...
* Fix the reference leak introduced by https://github.com/python/cpython/issues/103333
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2023-05-13 13:45:36 -07:00
Terry Jan Reedy
46f1c78eeb
gh-75710: IDLE - add docstrings and comments to editor module ( #104446 )
...
Commit extracted from PR #3669 . Will edit more later.
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2023-05-13 11:41:39 -04:00
Alex Waygood
c527eb1c2a
gh-91896: Revert some very noisy DeprecationWarnings for ByteString
( #104424 )
2023-05-13 09:55:35 +01:00
Ned Batchelder
1be80ed107
Add a mention of PYTHONBREAKPOINT to breakpoint() docs ( #104430 )
2023-05-13 00:12:03 -07:00
Terry Jan Reedy
57139a6b5f
gh-99836: IDLE - update news.txt for 3.12 ( #104444 )
...
* gh-99836: IDLE 3.12 news.txt
* gh-99836: IDLE - update news.txt for 3.12
2023-05-13 04:35:45 +00:00
Carl Meyer
563c7dcba0
gh-104404: fix crasher with nested comprehensions plus lambdas ( #104442 )
2023-05-12 17:42:04 -07:00
Brandt Bucher
1eb950ca55
GH-104405: Add missing PEP 523 checks (GH-104406)
2023-05-12 22:23:13 +00:00
Brandt Bucher
a10b026f0f
GH-94841: Fix usage of Py_ALWAYS_INLINE (GH-104409)
2023-05-12 14:26:54 -07:00
Charles Machalow
79b17f2cf0
gh-103333: Pickle the keyword attributes of AttributeError ( #103352 )
...
* Pickle the `name` and `args` attributes of AttributeError when present.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-05-12 13:33:23 -07:00
Ben Kallus
cf720acfcb
gh-103204: http.server
- Enforce that HTTP version numbers must consist only of digits ( #103205 )
...
Reject HTTP requests with invalid http/x.y version numbers: x or y being non-digits or too-long.
---------
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-05-12 13:25:58 -07:00
Hugo van Kemenade
25db95d224
gh-103857: Update deprecation stacktrace to point to calling line ( #104431 )
2023-05-12 22:25:45 +04:00
Paul Ganssle
590d7a527d
GH-86275: Run hypothesis tests in parallel ( #104427 )
...
Run hypothesis tests in parallel
2023-05-12 16:23:08 +00:00
Jelle Zijlstra
b7597dab2c
gh-86275: Fix install of new _hypothesis_stubs directory ( #104425 )
2023-05-12 15:51:46 +00:00
Alex Waygood
ce4eecf989
gh-91896: Fixup some docs issues following ByteString deprecation ( #104422 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-05-12 15:38:35 +01:00
Kumar Aditya
a052be4c0d
GH-104371: check return value of calling mv.release
( #104417 )
2023-05-12 18:27:06 +05:30
Nikita Sobolev
5b8cd5abe5
gh-104415: Fix refleak tests for typing.ByteString
deprecation ( #104416 )
2023-05-12 05:36:12 -07:00
Paul Ganssle
d50c37d8ad
GH-86275: Implementation of hypothesis stubs for property-based tests, with zoneinfo tests ( #22863 )
...
These are stubs to be used for adding hypothesis (https://hypothesis.readthedocs.io/en/latest/ ) tests to the standard library.
When the tests are run in an environment where `hypothesis` and its various dependencies are not installed, the stubs will turn any tests with examples into simple parameterized tests and any tests without examples are skipped.
It also adds hypothesis tests for the `zoneinfo` module, and a Github Actions workflow to run the hypothesis tests as a non-required CI job.
The full hypothesis interface is not stubbed out — missing stubs can be added as necessary.
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
2023-05-12 08:35:53 -04:00
Mark Shannon
45f5aa8fc7
GH-103082: Filter LINE events in VM, to simplify tool implementation. (GH-104387)
...
When monitoring LINE events, instrument all instructions that can have a predecessor on a different line.
Then check that the a new line has been hit in the instrumentation code.
This brings the behavior closer to that of 3.11, simplifying implementation and porting of tools.
2023-05-12 12:21:20 +01:00
Jurica Bradarić
19ee53d52e
gh-93649: Split gc- and allocation tests from _testcapimodule.c (GH-104403)
2023-05-12 10:26:07 +01:00
Erlend E. Aasland
b2c1b4da19
gh-104389: Add 'unused' keyword to Argument Clinic C converters ( #104390 )
...
Use the unused keyword param in the converter to explicitly
mark an argument as unused:
/*[clinic input]
SomeBaseClass.stubmethod
flag: bool(unused=True)
[clinic start generated code]*/
2023-05-12 10:34:00 +02:00
Erlend E. Aasland
15795b57d9
gh-101819: Prepare _io._IOBase for module state ( #104386 )
...
- Add PyIOBase_Type to _io module state
- Pass defining class to _io._IOBase.fileno
2023-05-12 07:30:26 +00:00
Jelle Zijlstra
718b132772
gh-104413: Fix refleak when super attribute throws AttributeError ( #104414 )
2023-05-12 13:00:14 +05:30
Brandt Bucher
a781484c8e
Fix refleak in super_descr_get
( #104408 )
2023-05-12 12:41:27 +05:30
Alex Henrie
3c2992e58b
gh-87526: Remove dead initialization from _zoneinfo parse_abbr() ( #24700 )
2023-05-12 08:48:42 +02:00
Alex Waygood
f0f5bb3204
gh-91896: Improve visibility of ByteString
deprecation warnings ( #104294 )
2023-05-11 23:01:31 -07:00
Jelle Zijlstra
a0a98ddb31
gh-104371: Fix calls to __release_buffer__
while an exception is active ( #104378 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-05-12 05:22:40 +00:00
Carl Meyer
ac66cc17f2
gh-104377: fix cell in comprehension that is free in outer scope ( #104394 )
2023-05-11 16:48:21 -07:00
Jelle Zijlstra
37a5d256b9
gh-104392: Remove _paramspec_tvars from typing ( #104393 )
...
This does nothing.
2023-05-11 16:41:26 -07:00
Jeong, YunWon
434db68ee3
gh-104396: uuid.py to skip platform check for emscripten and wasi (gh-104397)
2023-05-12 07:45:55 +09:00
Jonathan Protzenko
7d7dd4cd70
gh-99108: Refresh HACL* from upstream ( #104401 )
...
Refresh HACL* from upstream and add a SHA3 test hashing over 4GiB of data.
2023-05-11 21:23:52 +00:00
James Gerity
0449ffe3a4
gh-104301: Allow leading whitespace in disambiguated pdb statements ( #104342 )
2023-05-11 18:12:02 +01:00
Kirill Podoprigora
27419a71b5
gh-104057: Fix direct invocation of test_support (GH-104069)
2023-05-11 09:44:39 -05:00
Carl Meyer
77262458fe
gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization ( #104270 )
2023-05-11 08:08:13 -06:00
Erlend E. Aasland
ddc0e70a32
gh-101819: Fix inverted debug preprocessor check in winconsoleio.c ( #104388 )
2023-05-11 13:01:05 +00:00
Carl Meyer
1670729383
gh-87849: fix SEND specialization family definition (GH-104268)
2023-05-11 12:52:06 +01:00
Erlend E. Aasland
e629ab6adf
gh-101819: Adapt _io.IOBase.seek and _io.IOBase.truncate to Argument Clinic ( #104384 )
2023-05-11 10:34:26 +00:00
Erlend E. Aasland
ed41124bb5
gh-101819: Adapt _io._Buffered* methods to Argument Clinic ( #104367 )
2023-05-11 15:59:23 +05:30
Erlend E. Aasland
d0a738c6df
gh-101819: Refactor _io
futher in preparation for module isolation ( #104369 )
2023-05-11 15:56:30 +05:30
Erlend E. Aasland
7dabb35f83
gh-101819: Adapt _io.TextIOBase methods to Argument Clinic ( #104383 )
2023-05-11 15:49:22 +05:30
Erlend E. Aasland
7470321f81
gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs ( #104287 )
...
The SQLite C API sqlite3_changes() can only be relied upon when the
current active statement has been run to completion.
2023-05-11 10:44:31 +02:00
Carey Metcalfe
4abfe6a14b
GH-92184: Convert os.altsep to '/' in filenames when creating ZipInfo objects ( #92185 )
...
This causes the zipfile module to also consider the character defined by
`os.altsep` (if there is one) to be a path separator and convert it to a
forward slash, as defined by the zip specification.
A logical no-op on all known platforms today as os.altsep is currently only set to a meaningful value on Windows (where it is "/").
2023-05-11 07:25:16 +00:00
Carl Meyer
fcd5fb49b1
gh-104357: fix inlined comprehensions that close over iteration var ( #104368 )
2023-05-10 18:08:40 -07:00
Barney Gale
94f30c7557
GH-90208: Suppress OSError exceptions from pathlib.Path.glob()
(GH-104141)
...
`pathlib.Path.glob()` now suppresses all OSError exceptions, except
those raised from calling `is_dir()` on the top-level path.
Previously, `glob()` suppressed ENOENT, ENOTDIR, EBADF and ELOOP
errors and their Windows equivalents. PermissionError was also
suppressed unless it occurred when calling `is_dir()` on the
top-level path. However, the selector would abort prematurely
if a PermissionError was raised, and so `glob()` could return
incomplete results.
2023-05-11 01:01:39 +01:00
penguin_wwy
373bca0cc5
GH-102181: Improve specialization stats for SEND (GH-102182)
2023-05-10 22:40:59 +00:00