summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix typo in docs (GH-98863)Yuvi Panda2022-10-291-1/+1
|
* gh-93358: Fix python-config docs for how to embed Python (#98649)Erlend E. Aasland2022-10-291-6/+6
|
* Fix comment typos in `_operator.c` (#98853)David Buchanan2022-10-291-2/+2
|
* dataclasses docs: consistent indentation (4 spaces) in examples (#98855)FC Stegerman2022-10-291-16/+16
|
* GH-90352: fix _SelectorDatagramTransport to inherit from DatagramTransport ↵Kumar Aditya2022-10-293-1/+6
| | | | (#98844)
* gh-98744: Prevent column-level decoding crashes on traceback module (#98824)Batuhan Taskaya2022-10-293-14/+63
|
* gh-98286: handle empty filename in ZipFile/ZipInfo properly (#98346)FC Stegerman2022-10-291-2/+5
| | | effectively code modernization and a meaningful exception.
* gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)Mateusz2022-10-281-0/+2
|
* gh-84538: add strict argument to pathlib.PurePath.relative_to (GH-19813)domragusa2022-10-286-21/+150
| | | | | | | | | | | | | | | | | | | | | | | By default, :meth:`pathlib.PurePath.relative_to` doesn't deal with paths that are not a direct prefix of the other, raising an exception in that instance. This change adds a *walk_up* parameter that can be set to allow for using ``..`` to calculate the relative path. example: ``` >>> p = PurePosixPath('/etc/passwd') >>> p.relative_to('/etc') PurePosixPath('passwd') >>> p.relative_to('/usr') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pathlib.py", line 940, in relative_to raise ValueError(error_message.format(str(self), str(formatted))) ValueError: '/etc/passwd' does not start with '/usr' >>> p.relative_to('/usr', strict=False) PurePosixPath('../etc/passwd') ``` https://bugs.python.org/issue40358 Automerge-Triggered-By: GH:brettcannon
* Fix typo in contextvars docs (#98823)cburroughs2022-10-281-1/+1
|
* gh-92452: Avoid race in initialization of sysconfig._CONFIG_VARSGareth Rees2022-10-282-60/+82
| | | Co-authored-by: Filipe Laíns <lains@riseup.net>
* `argparse` docs: normalize constant references (#98765)Skip Montanaro2022-10-281-5/+6
|
* gh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-98779)Miro Hrončok2022-10-282-1/+2
| | | | | Fixes https://github.com/python/cpython/issues/98776 Automerge-Triggered-By: GH:erlend-aasland
* gh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)Nikita Sobolev2022-10-281-3/+8
| | | | | * gh-98657: [docs] `array.typecodes` is a module-level attribute * Update array.rst
* gh-65002: Make note that null bytes are used to pad bytes (#98635)Stanley2022-10-281-1/+4
|
* gh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on ↵Steve Dower2022-10-282-1/+5
| | | | request (GH-98780)
* gh-98624 Add mutex to unittest.mock.NonCallableMock (#98688)noah-weingarden2022-10-282-28/+40
| | | | | | | | | | | * Added lock to NonCallableMock in unittest.mock * Add blurb * Nitpick blurb * Edit comment based on @Jason-Y-Z's review * Add link to GH issue
* gh-98789: Fix FOR_ITER assert on big-endian (GH-98792)Dennis Sweeney2022-10-281-1/+1
| | | Fix FOR_ITER assertion syntax
* gh-98739: Update libexpat from 2.4.9 to 2.5.0 (#98742)Shaun Walbridge2022-10-274-18/+36
| | | | | * Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680. Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com>
* obmalloc: Remove unused variable. (GH-98770)Benjamin Peterson2022-10-271-3/+1
|
* gh-96143: Improve perf profiler docs (#96445)Erlend E. Aasland2022-10-276-48/+116
|
* GH-96793: Change `FOR_ITER` to not pop the iterator on exhaustion. (GH-96801)Mark Shannon2022-10-2714-247/+277
| | | | Change FOR_ITER to have the same stack effect regardless of whether it branches or not. Performance is unchanged as FOR_ITER (and specialized forms jump over the cleanup code).
* 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
|