summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-103607: Fix `pause_reading` to work when called from `connection_made` in ↵Itayazolay2023-04-275-24/+62
| | | | | `asyncio`. (#17425) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916)Nikita Sobolev2023-04-271-0/+3
|
* gh-103883: Doc: Move PyUnicode_FromObject doc (#103913)Inada Naoki2023-04-271-9/+9
| | | This API is one of Unicode creator APIs.
* gh-89415: Add source-specific multicast constants to socket module (#103684)Reese Hyde2023-04-272-0/+14
| | | | | Add socket options for source-specific multicast when present as C #defines. Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* gh-103656: Transfer f-string buffers to parser to avoid use-after-free ↵Lysandros Nikolaou2023-04-279-66/+146
| | | | | (GH-103896) Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-62432: unittest runner: Exit code 5 if no tests were run (#102051)Stefano Rivera2023-04-278-22/+64
| | | | | | | | As discussed in https://discuss.python.org/t/unittest-fail-if-zero-tests-were-discovered/21498/7 It is common for test runner misconfiguration to fail to find any tests, This should be an error. Fixes: #62432
* gh-103629: Update typing.Unpack docs in compliance with PEP 692 (#103894)Franek Magiera2023-04-263-2/+58
|
* gh-60436: fix curses textbox backspace/del (#103783)Aidan Melen2023-04-263-2/+77
| | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Michael Blahay <mblahay@gmail.com>
* gh-48241: Clarify URL needs to be encoded when provided to urlopen and ↵Michael Blahay2023-04-262-3/+4
| | | | | | Request (#103855) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Update MAC_address wikipedia URL in comments (#29019)1809092023-04-261-2/+2
|
* gh-103884: Docs CI: Only attempt nit-picky PR annotations for PRs (#103889)Hugo van Kemenade2023-04-261-0/+2
|
* gh-103489: Add get/set config methods to sqlite3.Connection (#103506)Erlend E. Aasland2023-04-267-1/+329
|
* gh-103015: Add entrypoint keyword param to sqlite3.Connection.load_extension ↵Erlend E. Aasland2023-04-269-14/+104
| | | | (#103073)
* gh-101879: docs - italicize argument in smtplib.SMPT() description (#101886)Owain Davies2023-04-261-5/+5
|
* gh-91441: Clarify the docs of asyncio.loop.subprocess_exec() (#91442)July Tikhonov2023-04-261-9/+8
| | | | | | | | Clarify the docs of asyncio.loop.subprocess_exec() Clarify the documentation of stdin, stdout and stderr arguments of asyncio.loop.subprocess_exec(). Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* GH-99944: Make dis display the value of oparg of KW_NAMES (#103856)Juhi Chandalia2023-04-263-3/+27
| | | | Co-authored-by: chilaxan <chilaxan@gmail.com>
* Add willingc to CODEOWNERS for asyncio (#103885)Carol Willing2023-04-261-1/+1
|
* Docs build: Add upper bounds to transitive dependencies (#103860)Alex Waygood2023-04-262-0/+34
|
* gh-103879: Fix refleak in super specialization (#103882)Jelle Zijlstra2023-04-261-0/+2
|
* gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like ↵Carol Willing2023-04-261-2/+3
| | | | | TransportSocket (#103877) Clarify that asyncio.Server.sockets is a socket-like TransportSocket
* gh-103875: Use ascii and latin1 singletons in deepfreeze (#103876)Yichen Yan2023-04-261-0/+6
|
* gh-103872: Update bundled pip version to 23.1.2 (gh-103873)Paul Moore2023-04-263-1/+2
| | | | | | | | | | | | closes: #103872 xref: https://github.com/pypa/pip/pull/12000 <!-- gh-issue-number: gh-103872 --> * Issue: gh-103872 <!-- /gh-issue-number --> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-74940: Allow fallback to UTF-8 encoding on systems with no locales ↵Gordon Messmer2023-04-262-1/+3
| | | | | | | | installed (GH-14925) This change removes the alias of the 'C' locale to 'en_US'. Because of this alias, it is currently impossible for an application to use setlocale() to specify a UTF-8 locale on a system that has no locales installed, but which supports the C.UTF-8 locale/encoding.
* gh-103578: Fix pdb reading code with non-utf8 encoding (#103581)Tian Gao2023-04-263-1/+8
| | | `pdb` should use `io.open_code` to open code to avoid encoding issue.
* gh-99352: Ensure HTTPSConnection is available before exercising https ↵Senthil Kumaran2023-04-261-8/+12
| | | | | | | | | | tests. (#103828) gh-99352: Ensure HTTPSConnection is available before exercising https tests. This will fix the buildbot issue mentioned in https://github.com/python/cpython/pull/99353
* GH-103804: Add test for dis.findlinestarts (#103806)Juhi Chandalia2023-04-252-0/+9
|
* gh-87729: specialize LOAD_SUPER_ATTR_METHOD (#103809)Carl Meyer2023-04-2514-358/+540
|
* gh-103721: Improve cross-references for generic-alias docs (#103838)Alex Waygood2023-04-251-0/+7
| | | | | | | | | Cc. @adriangb The "stub documentation" in `types.rst` does already link to the in-depth docs in `stdtypes.rst`, but the link isn't obvious for new users. It deserves to be made more prominent. - Issue: https://github.com/python/cpython/issues/103721
* gh-51574: Make tempfile.mkdtemp() always return absolute paths (#94612)Samuel Sloniker2023-04-255-3/+19
| | | | Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* gh-102950: Adjust tarfile filter tests for systems that don't set the sticky ↵Petr Viktorin2023-04-251-5/+25
| | | | | | | bit (GH-103831) Also remove expilcit `type=tarfile.DIRTYPE`, the slash at the end is enough.
* gh-103726: Set up gcc-10 for ASAN (gh-103728)Dong-hee Na2023-04-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important. # Pull Request title It should be in the following format: ``` gh-NNNNN: Summary of the changes made ``` Where: gh-NNNNN refers to the GitHub issue number. Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue. # Backport Pull Request title If this is a backport PR (PR made against branches other than `main`), please ensure that the PR title is in the following format: ``` [X.Y] <title from the original PR> (GH-NNNN) ``` Where: [X.Y] is the branch name, e.g. [3.6]. GH-NNNN refers to the PR number from `main`. --> <!-- gh-issue-number: gh-103726 --> * Issue: gh-103726 <!-- /gh-issue-number -->
* DOC: remove reference to OpenSolaris (#102671)partev2023-04-251-7/+0
|
* gh-103826: fix unused variable warning introduced in gh-102343 (#103825)sunmy20192023-04-251-2/+2
|
* gh-100227: Add a Granular Lock for _PyRuntime.imports.extensions.dict ↵Eric Snow2023-04-253-4/+16
| | | | | | (gh-103460) The lock is unnecessary as long as there's a GIL, but completely necessary with a per-interpreter GIL.
* gh-103636: add enums for days and months in calendar module (GH-103642)Prince Roshan2023-04-252-21/+40
| | | Convert day contants to a Day enum, and add a Month enum.
* gh-103718: Correctly set f-string buffers in all cases (GH-103815)Lysandros Nikolaou2023-04-251-8/+6
| | | | | | Turns out we always need to remember/restore fstring buffers in all of the stack of tokenizer modes, cause they might change to `TOK_REGULAR_MODE` and have newlines inside the braces (which is when we need to reallocate the buffer and restore the fstring ones).
* gh-82814: fix shutil access error on WSL (#103790)Allan Lago2023-04-252-1/+4
| | | | | | | gh-82814: Adds `errno.EACCES` to the list of ignored errors on `_copyxattr`. EPERM and EACCES are different constants but in general should be treated the same. News entry authored by: Gregory P. Smith <greg@krypto.org>
* Also fail DO-NOT-MERGE when "awaiting changes" or "awaiting change review" ↵Łukasz Langa2023-04-241-2/+2
| | | | | | | | present on PR (#103807) "awaiting changes" means somebody put a review that requested changes. "awaiting change review" means that the PR author published changes after a red review and then requested a re-review.
* gh-103765: Remove pkgutil.rst from .nitignore (GH-103797)Jaime Alonso Lorenzo2023-04-241-1/+0
|
* gh-103810: Fix broken references in dataclasses (#103811)Olga Matoula2023-04-242-73/+74
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* GH-103805: Lib test f541 linting issue fix (#103812)Rodolfo M. Pereira2023-04-2414-90/+90
| | | | | | | | | | | | | | | | This PR makes some minor linting adjustments to the Lib/test module caught by [ruff](https://github.com/charliermarsh/ruff). The adjustments are all related to the `F541 f-string without any placeholders` issue. Issue: https://github.com/python/cpython/issues/103805 <!-- gh-issue-number: gh-103805 --> * Issue: gh-103805 <!-- /gh-issue-number --> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-101659: Isolate "obmalloc" State to Each Interpreter (gh-101660)Eric Snow2023-04-2420-73/+322
| | | | | | | | | | | | | | This is strictly about moving the "obmalloc" runtime state from `_PyRuntimeState` to `PyInterpreterState`. Doing so improves isolation between interpreters, specifically most of the memory (incl. objects) allocated for each interpreter's use. This is important for a per-interpreter GIL, but such isolation is valuable even without it. FWIW, a per-interpreter obmalloc is the proverbial canary-in-the-coalmine when it comes to the isolation of objects between interpreters. Any object that leaks (unintentionally) to another interpreter is highly likely to cause a crash (on debug builds at least). That's a useful thing to know, relative to interpreter isolation.
* gh-103801: Tools/wasm linting and formatting (#103796)Daniel Versoza2023-04-243-3/+5
| | | | | | | | | | | | This PR makes three minor linting adjustments to the `wasm` module caught by [ruff](https://github.com/charliermarsh/ruff). <!-- gh-issue-number: gh-103801 --> * Issue: gh-103801 <!-- /gh-issue-number --> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-103673: Add missing ForkingUnixStreamServer and ForkingUnixDatagramServer ↵jb21702023-04-245-10/+19
| | | | | | | | | | | | | | | | socketservers (#103674) sockserver gains ForkingUnixStreamServer and ForkingUnixDatagramServer classes for consistency with all of the others. Ironically these existed but were buried in our test suite. Addresses #103673 <!-- gh-issue-number: gh-103673 --> * Issue: gh-103673 <!-- /gh-issue-number --> --------- Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-95795: Move types.next_version_tag to PyInterpreterState (gh-102343)Eric Snow2023-04-244-43/+94
| | | | | | Core static types will continue to use the global value. All other types will use the per-interpreter value. They all share the same range, where the global types use values < 2^16 and each interpreter uses values higher than that.
* gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497)Carl Meyer2023-04-2418-408/+783
| | | | | This speeds up `super()` (by around 85%, for a simple one-level `super().meth()` microbenchmark) by avoiding allocation of a new single-use `super()` object on each use.
* gh-103791: Make contextlib.suppress also act on exceptions within an ↵Łukasz Langa2023-04-246-22/+73
| | | | | ExceptionGroup (#103792) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-100227: Only Use deepfreeze for the Main Interpreter (gh-103794)Eric Snow2023-04-243-34/+58
| | | | | | | Deep-frozen code objects are cannot be shared (currently) by interpreters, due to how adaptive specialization can modify the bytecodes. We work around this by only using the deep-frozen objects in the main interpreter. This does incur a performance penalty for subinterpreters, which we may be able to resolve later.
* gh-103492: Clarify SyntaxWarning with literal comparison (#103493)Shantanu2023-04-244-16/+34
|
* gh-101100: Fix Sphinx warnings in `argparse` module (#103289)Hugo van Kemenade2023-04-245-16/+78
| | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>