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
Alex Waygood
7b8d7f56b6
gh-103000: Optimise `dataclasses.asdict` for the common case ( #104364 )
...
Co-authored-by: David Ellis <ducksual@gmail.com>
2023-05-10 22:43:51 +01:00
Christopher Chavez
e464ec9f4c
gh-103538: Remove unused TK_AQUA code (GH-103539)
2023-05-10 18:53:13 +00:00
Barney Gale
a33ce66dca
GH-87695: Fix OSError from `pathlib.Path.glob()` (GH-104292)
...
Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
2023-05-10 17:17:08 +00:00
Sebastian Berg
7a3b03509e
gh-104263: Rely on Py_NAN and introduce Py_INFINITY (GH-104202)
...
This PR removes `_Py_dg_stdnan` and `_Py_dg_infinity` in favour of
using the standard `NAN` and `INFINITY` macros provided by C99.
This change has the side-effect of fixing a bug on MIPS where the
hard-coded value used by `_Py_dg_stdnan` gave a signalling NaN
rather than a quiet NaN.
---------
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2023-05-10 17:44:52 +01:00
chgnrdv
a7a2dbbf72
gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` ( #104013 )
...
* separate documentation and examples for both functions
* add examples demonstrating behaviour with unsupported types
* document return value of `get_origin` for `ParamSpecArgs` and `ParamSpecKwargs` instances
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-05-10 07:48:55 -07:00
Erlend E. Aasland
ce8d3db256
gh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic ( #104355 )
...
Make sure the defining class is passed to all methods,
so we can easily fetch module state from them in the future.
2023-05-10 16:22:55 +02:00
Hugo van Kemenade
13ac1766bc
gh-103960: Dark mode: invert image brightness ( #103983 )
2023-05-10 16:46:37 +03:00
Eric Snow
b8f7ab5783
gh-104252: Immortalize Py_EMPTY_KEYS (gh-104253)
...
This was missed in gh-19474. It matters for with a per-interpreter GIL since PyDictKeysObject.dk_refcnt breaks isolation and leads to races.
2023-05-10 07:28:40 -06:00
Erlend E. Aasland
2dcb289ed0
gh-101819: Clean up _io windows console io after gh-104197 ( #104354 )
2023-05-10 10:59:31 +00:00
Erlend E. Aasland
68a8ca6dc1
gh-101819: Harden _io init ( #104352 )
...
Fix potential refleak if PyModule_AddObject() fails.
2023-05-10 12:59:03 +02:00
sunmy2019
22f3425c3d
gh-103247: clear the module cache in a test in test_importlib/extensions/test_loader.py (GH-104226)
2023-05-10 00:59:04 +00:00
JohnJamesUtley
29f348e232
gh-103848: Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format ( #103849 )
...
* Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format
---------
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-05-10 00:18:35 +00:00
Jakub Kulík
2c863b3871
gh-74895: adjust tests to work on Solaris ( #104326 )
...
Solaris is unusual here, but apparently everyone is happy when SOCK_STREAM is explicitly specified.
2023-05-09 16:49:55 -07:00
Erlend E. Aasland
235b82721d
gh-101819: Refactor _io in preparation for module isolation ( #104334 )
...
- Replace query with parameter in bufferediobase_unsupported()
- Replace query with parameter in iobase_unsupported()
- Hide delegate: Add method wrapper for _PyIOBase_check_seekable
- Hide delegate: Add method wraper for _PyIOBase_check_readable
- Hide delegate: Add method wraper for _PyIOBase_check_writable
- Replace query with parameter in _PyIOBase_check_seekable()
- Replace query with parameter in _PyIOBase_check_readable()
- Replace query with parameter in _PyIOBase_check_writable()
2023-05-09 23:09:03 +00:00
Alex Waygood
fe694a6db6
gh-90953: Don't use deprecated AST nodes in clinic.py ( #104322 )
2023-05-09 22:16:22 +01:00
David Foster
7ba6288feb
gh-102327: Extend docs for "url" and "headers" parameters to HTTPConnection.request()
...
Added example on how to use the HTTPConnection object for making GET request.
Original issue: https://github.com/python/cpython/issues/102327
---------
Co-authored-by: Éric <earaujo@caravan.coop>
2023-05-09 12:57:17 -07:00
Kirill Podoprigora
01c321ca34
gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message ( #104335 )
2023-05-09 13:18:15 -06:00
Jacob Bower
2866e030f0
gh-97696 Add documentation for get_coro() behavior with eager tasks ( #104304 )
2023-05-09 10:09:16 -07:00
Carl Meyer
c3b595e73e
gh-97933: (PEP 709) inline list/dict/set comprehensions ( #101441 )
...
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-05-09 11:02:14 -06:00
Sam Carroll
0aeda29793
gh-99889: Fix directory traversal security flaw in uu.decode() ( #104096 )
...
* Fix directory traversal security flaw in uu.decode()
* also check absolute paths and os.altsep
* Add a regression test.
---------
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2023-05-09 16:01:58 +00:00
Carl Meyer
afe7703744
gh-104184: fix building --with-pydebug --enable-pystats ( #104217 )
2023-05-09 08:53:19 -06:00
Gregory P. Smith
82f789be3b
gh-104139: Add itms-services to uses_netloc urllib.parse. ( #104312 )
...
Teach unsplit to retain the `"//"` when assembling `itms-services://?action=generate-bugs` style
[Apple Platform Deployment](https://support.apple.com/en-gb/guide/deployment/depce7cefc4d/web ) URLs.
2023-05-09 07:04:50 -07:00
Irit Katriel
ca95edf177
gh-104240: return code unit metadata from codegen ( #104300 )
2023-05-09 14:33:40 +01:00
chgnrdv
c21f828760
gh-104276: Make `_struct.unpack_iterator` type use type flag instead of custom constructor ( #104277 )
2023-05-09 12:41:09 +00:00
Itamar Ostricher
85f981880a
gh-97696: Move around and update the whatsnew entry for asyncio eager task factory ( #104298 )
2023-05-09 12:39:59 +00:00
Alex Waygood
9196da417d
gh-103193: Fix refleaks in `test_inspect` and `test_typing` ( #104320 )
2023-05-09 18:03:36 +05:30
Sebastian Pipping
41aff464ce
require-pr-label.yml: Add missing "permissions:" ( #104309 )
2023-05-09 13:29:00 +03:00