summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-102950: Implement PEP 706 – Filter for tarfile.extractall (#102953)Petr Viktorin2023-04-248-99/+1786
|
* gh-103285: Rewrite _splitlines_no_ff to improve performance (#103307)Tian Gao2023-04-243-18/+20
|
* gh-103685: Fix tkinter.Menu.index() for Tk 8.7 (#103686)Christopher Chavez2023-04-243-2/+7
| | | | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-103668: Run pyugrade on idlelib (#103671)Nikita Sobolev2023-04-2317-50/+50
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-103724: Add test case if no arg as provided in os.register_at_fork ↵Ankit Kumar Pandey2023-04-231-0/+3
| | | | (gh-103725)
* gh-81403: Add NEWS entry for PR #13951 (#103729)Senthil Kumaran2023-04-231-0/+3
| | | Add NEWS entry for PR #13951
* gh-101688: Implement types.get_original_bases (#101827)James Hilton-Balfe2023-04-236-0/+146
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-103718: Correctly cache and restore f-string buffers when needed (GH-103719)Lysandros Nikolaou2023-04-233-11/+35
|
* gh-103592: Add tests of `Literal` with `Enum` and `Union` of `Literal`s ↵Nikita Sobolev2023-04-231-0/+45
| | | | (#103706)
* gh-103716: Add test support requires fork in simple_subprocess (gh-103717)Ankit Kumar Pandey2023-04-231-1/+1
| | | add requires fork as test case depends on this
* gh-101408: PyObject_GC_Resize should calculate preheader size. (gh-101741)Dong-hee Na2023-04-232-6/+9
|
* GH-103699: Add `__orig_bases__` to various typing classes (#103698)Adrian Garcia Badaracco2023-04-233-2/+70
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-81403: Fix for CacheFTPHandler in urllib (#13951)Dan Hemberger2023-04-232-0/+8
| | | | | | | | | | | | | | bpo-37222: Fix for CacheFTPHandler in urllib A call to FTP.ntransfercmd must be followed by FTP.voidresp to clear the "end transfer" message. Without this, the client and server get out of sync, which will result in an error if the FTP instance is reused to open a second URL. This scenario occurs for even the most basic usage of CacheFTPHandler. Reverts the patch merged as a resolution to bpo-16270 and adds a test case for the CacheFTPHandler in test_urllib2net.py. Co-authored-by: Senthil Kumaran <senthil@python.org>
* gh-102310: Change error range for invalid bytes literals (#103663)Nikita Sobolev2023-04-233-1/+27
|
* gh-68654: Clarify subdirectories used by pkgutil.extend_path (#103701)Randy2023-04-222-7/+7
| | | Clarify sub directories used by pkgutil.extend_path in the docs and the docstring
* Revert "Avoid error lexing multiprocessing docs code block on Pygments ↵Hugo van Kemenade2023-04-221-3/+1
| | | | | 2.15.0" (#103616) This reverts commit ace51dcdb781b0608b1273d246ebaee849561435.
* gh-84436: Implement Immortal Objects (gh-19474)Eddie Elizondo2023-04-2235-171/+483
| | | | | | | | | This is the implementation of PEP683 Motivation: The PR introduces the ability to immortalize instances in CPython which bypasses reference counting. Tagging objects as immortal allows up to skip certain operations when we know that the object will be around for the entire execution of the runtime. Note that this by itself will bring a performance regression to the runtime due to the extra reference count checks. However, this brings the ability of having truly immutable objects that are useful in other contexts such as immutable data sharing between sub-interpreters.
* gh-103661: Apply bugfix from importlib_metadata 6.5.1 and restore test. ↵Jason R. Coombs2023-04-222-24/+15
| | | | (#103681)
* gh-83791: Raise TypeError for len(memoryview_0d) (#18463)Eric Wieser2023-04-225-22/+31
| | | Changes the behaviour of `len` on a zero-dimensional `memoryview` to raise `TypeError`. Previously, `len` would return `1`.
* GH-103484: Fix broken links reported by linkcheck (#103608)Rafael Fontenelle2023-04-2215-30/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Doc: Fix broken links reported by linkcheck * Apply suggestions from code review - Remove extra diff line in faq/library.rst (merwok) - Use HTTPS to link Unicode 15.0.0 to solve a redirect (hugovk) - Use wayback machine link for openssl 1.1.0 instead of linking 1.1.1, "as this text mentions a feature from 1.1.0" (hugovk) Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Doc: Make mark-up code as literal * Doc: Alphabetize items in linkcheck_ignore Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Doc: Improve comment in sphinx conf Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --------- Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-103475: cache() and lru_cache() do not have a "call once" guarantee ↵Raymond Hettinger2023-04-221-4/+14
| | | | (GH-103669)
* Descriptor HowTo: Update to include attributes added in Python 3.10 ↵Raymond Hettinger2023-04-221-8/+90
| | | | (GH-103666)
* gh-103559: Update bundled pip version to 23.1.1 (gh-103560)Paul Moore2023-04-223-1/+2
| | | | * Update bundled pip version to 23.1 * Update to pip 23.1.1
* gh-103556: [inspect.Signature] disallow pos-or-kw params without default ↵Nikita Sobolev2023-04-223-12/+41
| | | | after pos-only with default (#103557)
* Minor improvements to the functools docs (#103672)Raymond Hettinger2023-04-221-3/+2
| | | | | * Use an f-string for improved readability * Put version notes in chronological order
* GH-103415: Document itertools.batched() in whatsnew.3.12 (#103670)Raymond Hettinger2023-04-221-0/+7
|
* gh-103661: Skip failing test on Windows. (#103662)Jason R. Coombs2023-04-211-1/+12
|
* gh-103082: Fix shifted field initialization in `instrumentation.c` (GH-103561)Oleg Iarygin2023-04-211-4/+4
| | | Fix shifted field initialization in instrumentation.c
* Sync with importlib_metadata 6.5 (GH-103584)Jason R. Coombs2023-04-2110-72/+531
|
* gh-99352: Respect `http.client.HTTPConnection.debuglevel` in ↵Wheeler Law2023-04-213-18/+57
| | | | | | | | | | | | | | | | | | | | | `urllib.request.AbstractHTTPHandler` (#99353) * bugfix: let the HTTP- and HTTPSHandlers respect the value of http.client.HTTPConnection.debuglevel * add tests * add news * ReSTify NEWS and reword a bit. * Address Review Comments. * Use mock.patch.object instead of settting the module level value. * Used test values to assert the debuglevel. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Senthil Kumaran <senthil@python.org>
* gh-98641: Document difference between task group and gather (#103644)Adrien2023-04-201-5/+10
| | | The purpose of the comments is to rule out the implication that asyncio.TaskGroup is a drop-in replacement / better alternative to asyncio.gather().
* gh-98040: Move the Single-Phase Init Tests Out of test_imp (gh-102561)Eric Snow2023-04-192-843/+865
| | | I recently added some tests to test_imp, but @warsaw is removing that file in gh-98573. The tests are worth keeping so here I'm moving them to test_import.
* gh-83861: Fix datetime.astimezone() method (GH-101545)Alexander Belopolsky2023-04-194-2/+29
|
* gh-102856: Clean some of the PEP 701 tokenizer implementation (#103634)Pablo Galindo Salgado2023-04-192-74/+67
|
* gh-102856: Skip test_mismatched_parens in WASI builds (#103633)Pablo Galindo Salgado2023-04-191-0/+2
|
* gh-102856: Initial implementation of PEP 701 (#102855)Pablo Galindo Salgado2023-04-1927-3751/+6037
| | | | | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
* gh-103583: Add ref. dependency between multibytecodec modules (#103589)Erlend E. Aasland2023-04-193-14/+58
|
* gh-83004: Harden msvcrt further (#103420)Erlend E. Aasland2023-04-191-62/+53
|
* GH-88342: clarify that `asyncio.as_completed` accepts generators yielding ↵Kumar Aditya2023-04-192-1/+5
| | | | tasks (#103626)
* gh-102778: IDLE - make sys.last_exc available in Shell after traceback (#103314)Irit Katriel2023-04-192-0/+2
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-103582: Remove last references to `argparse.REMAINDER` from docs (#103586)Nikita Sobolev2023-04-191-2/+2
|
* gh-103583: Always pass multibyte codec structs as const (#103588)Erlend E. Aasland2023-04-192-7/+7
|
* gh-103617: Fix compiler warning in _iomodule.c (#103618)Erlend E. Aasland2023-04-191-2/+3
|
* gh-103596: [Enum] do not shadow mixed-in methods/attributes (GH-103600)Ethan Furman2023-04-185-41/+85
| | | | | | | | | | | | | | | | | | For example: class Book(StrEnum): title = auto() author = auto() desc = auto() Book.author.desc is Book.desc but Book.author.title() == 'Author' is commonly expected. Using upper-case member names avoids this confusion and possible performance impacts. Co-authored-by: samypr100 <3933065+samypr100@users.noreply.github.com>
* GH-100530: Change the error message for non-class class patterns (GH-103576)Nikita Sobolev2023-04-182-1/+2
|
* gh-95299: Remove lingering setuptools reference in installer scripts (GH-103613)Steve Dower2023-04-181-1/+0
|
* [Doc] Fix a typo in optparse.rst (#103504)zyckk42023-04-181-1/+1
|
* gh-101100: Fix broken reference `__format__` in `string.rst` (#103531)yuki2023-04-181-2/+2
|
* gh-95299: Stop installing setuptools as a part of ensurepip and venv (#101039)Pradyun Gedam2023-04-1813-48/+57
| | | | | | | Remove the bundled setuptools wheel from ensurepip, and stop installing setuptools in environments created by venv. Co-Authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* GH-103484: Docs: add linkcheck allowed redirects entries for most cases ↵Rafael Fontenelle2023-04-181-3/+8
| | | | | | (#103569) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>