Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-103204: `http.server` - Enforce that HTTP version numbers must consist ↵ | Ben Kallus | 2023-05-12 | 3 | -0/+28 |
| | | | | | | | | | | 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> | ||||
* | gh-103857: Update deprecation stacktrace to point to calling line (#104431) | Hugo van Kemenade | 2023-05-12 | 2 | -2/+3 |
| | |||||
* | GH-86275: Run hypothesis tests in parallel (#104427) | Paul Ganssle | 2023-05-12 | 1 | -0/+2 |
| | | | Run hypothesis tests in parallel | ||||
* | gh-86275: Fix install of new _hypothesis_stubs directory (#104425) | Jelle Zijlstra | 2023-05-12 | 1 | -0/+1 |
| | |||||
* | gh-91896: Fixup some docs issues following ByteString deprecation (#104422) | Alex Waygood | 2023-05-12 | 2 | -1/+7 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | GH-104371: check return value of calling `mv.release` (#104417) | Kumar Aditya | 2023-05-12 | 1 | -1/+7 |
| | |||||
* | gh-104415: Fix refleak tests for `typing.ByteString` deprecation (#104416) | Nikita Sobolev | 2023-05-12 | 1 | -0/+9 |
| | |||||
* | GH-86275: Implementation of hypothesis stubs for property-based tests, with ↵ | Paul Ganssle | 2023-05-12 | 9 | -1/+719 |
| | | | | | | | | | | | | | 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> | ||||
* | GH-103082: Filter LINE events in VM, to simplify tool implementation. ↵ | Mark Shannon | 2023-05-12 | 16 | -158/+252 |
| | | | | | | | | (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. | ||||
* | gh-93649: Split gc- and allocation tests from _testcapimodule.c (GH-104403) | Jurica Bradarić | 2023-05-12 | 6 | -327/+353 |
| | |||||
* | gh-104389: Add 'unused' keyword to Argument Clinic C converters (#104390) | Erlend E. Aasland | 2023-05-12 | 4 | -1/+62 |
| | | | | | | | | | 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]*/ | ||||
* | gh-101819: Prepare _io._IOBase for module state (#104386) | Erlend E. Aasland | 2023-05-12 | 4 | -11/+21 |
| | | | | - Add PyIOBase_Type to _io module state - Pass defining class to _io._IOBase.fileno | ||||
* | gh-104413: Fix refleak when super attribute throws AttributeError (#104414) | Jelle Zijlstra | 2023-05-12 | 2 | -114/+116 |
| | |||||
* | Fix refleak in `super_descr_get` (#104408) | Brandt Bucher | 2023-05-12 | 1 | -1/+3 |
| | |||||
* | gh-87526: Remove dead initialization from _zoneinfo parse_abbr() (#24700) | Alex Henrie | 2023-05-12 | 1 | -1/+1 |
| | |||||
* | gh-91896: Improve visibility of `ByteString` deprecation warnings (#104294) | Alex Waygood | 2023-05-12 | 5 | -12/+85 |
| | |||||
* | gh-104371: Fix calls to `__release_buffer__` while an exception is active ↵ | Jelle Zijlstra | 2023-05-12 | 2 | -2/+25 |
| | | | | | (#104378) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | ||||
* | gh-104377: fix cell in comprehension that is free in outer scope (#104394) | Carl Meyer | 2023-05-11 | 2 | -7/+67 |
| | |||||
* | gh-104392: Remove _paramspec_tvars from typing (#104393) | Jelle Zijlstra | 2023-05-11 | 2 | -13/+8 |
| | | | | This does nothing. | ||||
* | gh-104396: uuid.py to skip platform check for emscripten and wasi (gh-104397) | Jeong, YunWon | 2023-05-11 | 1 | -1/+1 |
| | |||||
* | gh-99108: Refresh HACL* from upstream (#104401) | Jonathan Protzenko | 2023-05-11 | 3 | -2/+11 |
| | | | Refresh HACL* from upstream and add a SHA3 test hashing over 4GiB of data. | ||||
* | gh-104301: Allow leading whitespace in disambiguated pdb statements (#104342) | James Gerity | 2023-05-11 | 5 | -12/+50 |
| | |||||
* | gh-104057: Fix direct invocation of test_support (GH-104069) | Kirill Podoprigora | 2023-05-11 | 1 | -1/+1 |
| | |||||
* | gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270) | Carl Meyer | 2023-05-11 | 13 | -352/+374 |
| | |||||
* | gh-101819: Fix inverted debug preprocessor check in winconsoleio.c (#104388) | Erlend E. Aasland | 2023-05-11 | 1 | -1/+1 |
| | |||||
* | gh-87849: fix SEND specialization family definition (GH-104268) | Carl Meyer | 2023-05-11 | 3 | -176/+177 |
| | |||||
* | gh-101819: Adapt _io.IOBase.seek and _io.IOBase.truncate to Argument Clinic ↵ | Erlend E. Aasland | 2023-05-11 | 2 | -22/+135 |
| | | | | (#104384) | ||||
* | gh-101819: Adapt _io._Buffered* methods to Argument Clinic (#104367) | Erlend E. Aasland | 2023-05-11 | 2 | -56/+328 |
| | |||||
* | gh-101819: Refactor `_io` futher in preparation for module isolation (#104369) | Erlend E. Aasland | 2023-05-11 | 5 | -116/+268 |
| | |||||
* | gh-101819: Adapt _io.TextIOBase methods to Argument Clinic (#104383) | Erlend E. Aasland | 2023-05-11 | 2 | -40/+233 |
| | |||||
* | gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (#104287) | Erlend E. Aasland | 2023-05-11 | 1 | -1/+4 |
| | | | | 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 ↵ | Carey Metcalfe | 2023-05-11 | 2 | -0/+5 |
| | | | | | | | | | 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-104357: fix inlined comprehensions that close over iteration var (#104368) | Carl Meyer | 2023-05-11 | 2 | -6/+23 |
| | |||||
* | GH-90208: Suppress OSError exceptions from `pathlib.Path.glob()` (GH-104141) | Barney Gale | 2023-05-11 | 3 | -46/+29 |
| | | | | | | | | | | | `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. | ||||
* | GH-102181: Improve specialization stats for SEND (GH-102182) | penguin_wwy | 2023-05-10 | 4 | -44/+49 |
| | |||||
* | gh-103000: Optimise `dataclasses.asdict` for the common case (#104364) | Alex Waygood | 2023-05-10 | 2 | -5/+14 |
| | | | Co-authored-by: David Ellis <ducksual@gmail.com> | ||||
* | gh-103538: Remove unused TK_AQUA code (GH-103539) | Christopher Chavez | 2023-05-10 | 3 | -64/+3 |
| | |||||
* | GH-87695: Fix OSError from `pathlib.Path.glob()` (GH-104292) | Barney Gale | 2023-05-10 | 3 | -2/+13 |
| | | | | 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) | Sebastian Berg | 2023-05-10 | 12 | -198/+44 |
| | | | | | | | | | | 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_origin` and ↵ | chgnrdv | 2023-05-10 | 1 | -9/+22 |
| | | | | | | | | | `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> | ||||
* | gh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic (#104355) | Erlend E. Aasland | 2023-05-10 | 2 | -44/+236 |
| | | | | Make sure the defining class is passed to all methods, so we can easily fetch module state from them in the future. | ||||
* | gh-103960: Dark mode: invert image brightness (#103983) | Hugo van Kemenade | 2023-05-10 | 3 | -0/+3 |
| | |||||
* | gh-104252: Immortalize Py_EMPTY_KEYS (gh-104253) | Eric Snow | 2023-05-10 | 3 | -14/+27 |
| | | | 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: Clean up _io windows console io after gh-104197 (#104354) | Erlend E. Aasland | 2023-05-10 | 3 | -3/+3 |
| | |||||
* | gh-101819: Harden _io init (#104352) | Erlend E. Aasland | 2023-05-10 | 1 | -3/+4 |
| | | | Fix potential refleak if PyModule_AddObject() fails. | ||||
* | gh-103247: clear the module cache in a test in ↵ | sunmy2019 | 2023-05-10 | 1 | -9/+10 |
| | | | | test_importlib/extensions/test_loader.py (GH-104226) | ||||
* | gh-103848: Adds checks to ensure that bracketed hosts found by urlsplit are ↵ | JohnJamesUtley | 2023-05-10 | 3 | -1/+43 |
| | | | | | | | | | 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> | ||||
* | gh-74895: adjust tests to work on Solaris (#104326) | Jakub Kulík | 2023-05-09 | 1 | -6/+6 |
| | | | 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) | Erlend E. Aasland | 2023-05-09 | 3 | -42/+80 |
| | | | | | | | | | | - 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-90953: Don't use deprecated AST nodes in clinic.py (#104322) | Alex Waygood | 2023-05-09 | 1 | -9/+3 |
| |