main
Name already in use
Commits on May 11, 2023
-
gh-104392: Remove _paramspec_tvars from typing (#104393)
This does nothing.
-
gh-99108: Refresh HACL* from upstream (#104401)
Refresh HACL* from upstream and add a SHA3 test hashing over 4GiB of data.
-
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.
-
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 "/").
-
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.
Commits on May 10, 2023
-
gh-103000: Optimise
dataclasses.asdictfor the common case (#104364)Co-authored-by: David Ellis <ducksual@gmail.com>
-
-
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.
-
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>
-
gh-104010: Separate and improve docs for
typing.get_originand `typ……ing.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>
-
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.
-
-
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.
-
gh-101819: Harden _io init (#104352)
Fix potential refleak if PyModule_AddObject() fails.
-
gh-103247: clear the module cache in a test in test_importlib/extensi…
…ons/test_loader.py (GH-104226)
-
gh-103848: Adds checks to ensure that bracketed hosts found by urlspl…
…it 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>
Commits on May 9, 2023
-
gh-74895: adjust tests to work on Solaris (#104326)
Solaris is unusual here, but apparently everyone is happy when SOCK_STREAM is explicitly specified.
-
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()
-
gh-102327: Extend docs for "url" and "headers" parameters to HTTPConn…
…ection.request() Added example on how to use the HTTPConnection object for making GET request. Original issue: #102327 --------- Co-authored-by: Éric <earaujo@caravan.coop>