summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-98586: Add vector call APIs to the Limited API (GH-98587)Wenzel Jakob2022-10-279-18/+170
| | | Expose the facilities for making vector calls through Python's limited API.
* Python documents state elsewhere that a comma is not an operator, so … ↵Gerardwx2022-10-271-1/+1
| | | | | (GH-98736) …calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.html#operators and https://docs.python.org/3/faq/programming.html#id22.
* gh-98627: Use a Switch in PyModule_FromDefAndSpec2() (gh-98734)Eric Snow2022-10-271-14/+18
| | | This helps simplify some changes in follow-up PRs. It also matches what we're doing in PyModule_ExecDef().
* gh-98703: Add tests for closing `_ProactorSocketTransport` with proactor ↵Kumar Aditya2022-10-271-0/+21
| | | | event loop (GH-98730)
* gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple ↵Ken Jin2022-10-272-0/+4
| | | | | times (GH-98704) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-94808: cover `PyFunction_GetDefaults` and `PyFunction_SetDefaults` (#98449)Nikita Sobolev2022-10-272-0/+71
|
* Fix readline.c compiler warning. (GH-98738)Benjamin Peterson2022-10-261-1/+1
| | | | | | | ``` Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] completer_word_break_characters = ^ ```
* gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743)Henry Schreiner2022-10-262-4/+4
|
* gh-98727: Remove old style classes from `test_cmath` (GH-98728)Nikita Sobolev2022-10-261-33/+5
|
* gh-98608: Change _Py_NewInterpreter() to _Py_NewInterpreterFromConfig() ↵Eric Snow2022-10-2621-39/+295
| | | | | | | | | | | | | | | | | | | | | | | | | (gh-98609) (see https://github.com/python/cpython/issues/98608) This change does the following: 1. change the argument to a new `_PyInterpreterConfig` struct 2. rename the function to `_Py_NewInterpreterFromConfig()`, inspired by `Py_InitializeFromConfig()` (takes a `_PyInterpreterConfig` instead of `isolated_subinterpreter`) 3. split up the boolean `isolated_subinterpreter` into the corresponding multiple granular settings * allow_fork * allow_subprocess * allow_threads 4. add `PyInterpreterState.feature_flags` to store those settings 5. add a function for checking if a feature is enabled on an opaque `PyInterpreterState *` 6. drop `PyConfig._isolated_interpreter` The existing default (see `Py_NewInterpeter()` and `Py_Initialize*()`) allows fork, subprocess, and threads and the optional "isolated" interpreter (see the `_xxsubinterpreters` module) disables all three. None of that changes here; the defaults are preserved. Note that the given `_PyInterpreterConfig` will not be used outside `_Py_NewInterpreterFromConfig()`, nor preserved. This contrasts with how `PyConfig` is currently preserved, used, and even modified outside `Py_InitializeFromConfig()`. I'd rather just avoid that mess from the start for `_PyInterpreterConfig`. We can preserve it later if we find an actual need. This change allows us to follow up with a number of improvements (e.g. stop disallowing subprocess and support disallowing exec instead). (Note that this PR adds "private" symbols. We'll probably make them public, and add docs, in a separate change.)
* Fix small typo in the removed/deprecated section of the 3.11 whats new ↵Pablo Galindo Salgado2022-10-260-0/+0
| | | | (GH-98722)
* gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (#98720)Erlend E. Aasland2022-10-261-5/+5
|
* gh-98644: point people to tomllib from configparser’s docs (#98645)Philipp A2022-10-261-4/+8
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-98713: Use `@cpython_only` for a test that fails on PyPy (#98714)Nikita Sobolev2022-10-262-1/+5
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-90716: add _pylong.py module (#96673)Neil Schemenauer2022-10-266-0/+572
| | | | | | | | | | | | Add Python implementations of certain longobject.c functions. These use asymptotically faster algorithms that can be used for operations on integers with many digits. In those cases, the performance overhead of the Python implementation is not significant since the asymptotic behavior is what dominates runtime. Functions provided by this module should be considered private and not part of any public API. Co-author: Tim Peters <tim.peters@gmail.com> Co-author: Mark Dickinson <dickinsm@gmail.com> Co-author: Bjorn Martinsson
* gh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (#98486)Nikita Sobolev2022-10-262-0/+48
|
* gh-98348: Mention ReferenceError in weakref.proxy documentation (#98355)fancidev2022-10-261-0/+3
|
* docs: Change links to label refs (#98454)Stanley2022-10-2610-11/+15
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-77753: Add example for values that compare equal in stdtypes (#98497)Stanley2022-10-261-5/+3
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-84747: Add `async for` comment for StreamReader (#98633)Stanley2022-10-261-1/+2
|
* fix a typo in whatsnew/3.11 (#98603)July Tikhonov2022-10-251-1/+1
|
* gh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (#98648)Nikita Sobolev2022-10-251-0/+27
|
* Fix typos in deprecation section of 3.11 What's New (#98628)Jacob Walls2022-10-251-3/+3
|
* gh-97937: dis docs: add adaptive=False (#97939)Jelle Zijlstra2022-10-251-13/+29
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-91058: Add error suggestions to 'import from' import errors (#98305)Pablo Galindo Salgado2022-10-2511-14/+235
|
* gh-96143: Move the perf trampoline files to the Python directory (#98675)Pablo Galindo Salgado2022-10-2511-18/+18
|
* gh-94328: Update Windows installer to use SQLite 3.39.4 (#98640)Erlend E. Aasland2022-10-254-3/+4
|
* Update build status links in contributing doc (GH-98672)Zachary Ware2022-10-251-14/+2
|
* Update link to supported versions table in security policy (GH-98670)Zachary Ware2022-10-251-1/+1
|
* gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple ↵Eclips42022-10-251-1/+1
| | | | example (#98605)
* GH-87390: Add remaining tests for PEP 646 (#98267)Matthew Rahtz2022-10-253-242/+473
| | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* gh-98623: Fix base classes in `typing.rst` (#98626)Nikita Sobolev2022-10-251-2/+2
|
* Use more precise exception types in `assertRaises` in typing tests (#98650)Nikita Sobolev2022-10-251-3/+3
|
* gh-93696: Locate frozen module source with __file__ (#93697)James Gerity2022-10-253-0/+53
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (#98631)C.A.M. Gerlach2022-10-251-22/+91
| | | | | | | | | * Add two line breaks and ref target labels to remaining subsections * Fix a few out of order Improved Modules * Fix a few minor textual formatting issues in sections * Fix remaining Sphinx warnings in the Improved Modules section
* gh-98461: Fix location of RETURN_VALUE in async generator bytecode. ↵Irit Katriel2022-10-252-57/+44
| | | | compiler_jump_if no longer needs a pointer to the loc. (GH-98494)
* gh-94328: Update macOS installer to use SQLite 3.39.4. (#98639)Erlend E. Aasland2022-10-252-3/+4
|
* Post 3.12.0a1Thomas Wouters2022-10-251-1/+1
|
* Python 3.12.0a1v3.12.0a1Thomas Wouters2022-10-24597-1455/+6456
|
* GH-89237: fix hang in proactor `subprocess.wait_closed()` (#98572)Kumar Aditya2022-10-243-2/+10
|
* gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports ↵Nikita Sobolev2022-10-241-72/+78
| | | | subscripting" (#98508)
* GH-91635: clarify docs about closing of transport in asyncio (#98563)Kumar Aditya2022-10-241-1/+2
|
* GH-98407: fix `test_kill_issue43884` to not leak child processes (#98491)Kumar Aditya2022-10-241-1/+4
|
* gh-98500: Fix typing docs for `*View` classes (#98511)Nikita Sobolev2022-10-241-4/+4
|
* gh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (#98604)Jelle Zijlstra2022-10-241-1/+1
| | | Followup from #98312.
* gh-97909: Mark up members of PyMemberDef (GH-98473)Johnny115022022-10-241-21/+21
| | | Co-authored-by: T <tnie@tuta.io>
* gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)C.A.M. Gerlach2022-10-241-20/+43
| | | | | | | | | | | | * Fix names/references of pending removal APIs * Sort list of APIs pending removal alphabetically * Add missing modules/submodules pending removal in 3.12 * Add table of unittest deprecated aliases to 3.11 What's New Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (#98312)C.A.M. Gerlach2022-10-241-0/+13
|
* gh-95913: Edit & expand Deprecated section of 3.11 WhatsNew (#98581)C.A.M. Gerlach2022-10-241-82/+108
| | | | | | | * Refine Sphinx syntax and grammar/phrasing in Deprecated section items * Organize into lang/builtins, modules & stdlib sections * Convert PEP 594 module list into a grid to not waste as much space * Add importlib.resources deprecated functions to section
* gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew (GH-98559)C.A.M. Gerlach2022-10-241-39/+81
|