]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years agogh-99032: datetime docs: Encoding is no longer relevant (#93365)
William Andrea [Mon, 24 Apr 2023 18:54:16 +0000 (14:54 -0400)] 
gh-99032: datetime docs: Encoding is no longer relevant (#93365)

This removes a section of the `strftime` and `strptime` documentation that refers to a bygone era when `strftime` would return an encoded byte string.

---------

Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
2 years agogh-94300: Update datetime.strptime documentation (#95318)
Howie Zhao [Mon, 24 Apr 2023 18:35:15 +0000 (02:35 +0800)] 
gh-94300: Update datetime.strptime documentation (#95318)

The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`.

---------

Co-authored-by: Paul Ganssle <git@m.ganssle.io>
2 years agogh-103776: Remove explicit uses of $(SHELL) from Makefile (GH-103778)
Zachary Ware [Mon, 24 Apr 2023 18:31:43 +0000 (13:31 -0500)] 
gh-103776: Remove explicit uses of $(SHELL) from Makefile (GH-103778)

This avoids conflicting with the shebang of the called scripts as well
as avoiding hard errors on platforms where the called script runs a
failing unchecked command in the usual course of checking since
`SHELL=/bin/sh -e` as of a90863c.

Fixes gh-103776.

2 years agogh-87092: fix a few cases of incorrect error handling in compiler (#103456)
Irit Katriel [Mon, 24 Apr 2023 18:30:49 +0000 (12:30 -0600)] 
gh-87092: fix a few cases of incorrect error handling in compiler (#103456)

gh-87092: fix a few cases of incorrect error handling

2 years agoGH-103727: Avoid advancing tokenizer too far in f-string mode (GH-103775)
Lysandros Nikolaou [Mon, 24 Apr 2023 18:30:21 +0000 (12:30 -0600)] 
GH-103727: Avoid advancing tokenizer too far in f-string mode (GH-103775)

2 years agoRevert "Add tests for empty range equality (#103751)" (#103770)
Terry Jan Reedy [Mon, 24 Apr 2023 18:29:57 +0000 (14:29 -0400)] 
Revert "Add tests for empty range equality (#103751)" (#103770)

This reverts commit dca27a69a8261353f7f986eb8f808f0d487ac4b7.
Added tests are redundant with existing tests.

2 years agogh-94518: Port 23-argument `_posixsubprocess.fork_exec` to Argument Clinic (#94519)
Oleg Iarygin [Mon, 24 Apr 2023 18:27:48 +0000 (22:27 +0400)] 
gh-94518: Port 23-argument `_posixsubprocess.fork_exec` to Argument Clinic (#94519)

Convert fork_exec to pre-inlined-argparser Argument Clinic

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years agoGH-65022: Fix description of copyreg.pickle function (#102656)
Furkan Onder [Mon, 24 Apr 2023 17:26:40 +0000 (20:26 +0300)] 
GH-65022: Fix description of copyreg.pickle function (#102656)

Fix description of copyreg.pickle function

2 years agogh-103323: Get the "Current" Thread State from a Thread-Local Variable (gh-103324)
Eric Snow [Mon, 24 Apr 2023 17:17:02 +0000 (11:17 -0600)] 
gh-103323: Get the "Current" Thread State from a Thread-Local Variable (gh-103324)

We replace _PyRuntime.tstate_current with a thread-local variable. As part of this change, we add a _Py_thread_local macro in pyport.h (only for the core runtime) to smooth out the compiler differences. The main motivation here is in support of a per-interpreter GIL, but this change also provides some performance improvement opportunities.

Note that we do not provide a fallback to the thread-local, either falling back to the old tstate_current or to thread-specific storage (PyThread_tss_*()). If that proves problematic then we can circle back. I consider it unlikely, but will run the buildbots to double-check.

Also note that this does not change any of the code related to the GILState API, where it uses a thread state stored in thread-specific storage. I suspect we can combine that with _Py_tss_tstate (from here). However, that can be addressed separately and is not urgent (nor critical).

(While this change was mostly done independently, I did take some inspiration from earlier (~2020) work by @markshannon (main...markshannon:threadstate_in_tls) and @vstinner (#23976).)

2 years agogh-91687: modernize dataclass example typing (#103773)
Allan Lago [Mon, 24 Apr 2023 17:16:23 +0000 (11:16 -0600)] 
gh-91687: modernize dataclass example typing (#103773)

modernize dataclass example typing `list` rather than `List` and comment as to that line being the alluded too error.

2 years agogh-103746: Test `types.UnionType` and `Literal` types together (#103747)
Nikita Sobolev [Mon, 24 Apr 2023 16:55:16 +0000 (19:55 +0300)] 
gh-103746: Test `types.UnionType` and `Literal` types together (#103747)

2 years agogh-103765: Fix 'Warning: py:class reference target not found: ModuleSpec' (GH-103769)
Jaime Alonso Lorenzo [Mon, 24 Apr 2023 16:51:45 +0000 (10:51 -0600)] 
gh-103765: Fix 'Warning: py:class reference target not found: ModuleSpec' (GH-103769)

2 years agogh-87452: Improve the Popen.returncode docs
Joshua Herman [Mon, 24 Apr 2023 16:46:12 +0000 (10:46 -0600)] 
gh-87452: Improve the Popen.returncode docs

Clarifies that it remains None until a method checking the child process status has been called and noticed it has terminated.

2 years agoRemoved unnecessary escaping of asterisks (#103714)
Richard Hajek [Mon, 24 Apr 2023 16:31:41 +0000 (18:31 +0200)] 
Removed unnecessary escaping of asterisks (#103714)

Removed unnecessary escaping of asterisks, as visible both on GitHub and in https://docs.python.org/3/library/decimal.html#decimal.localcontext

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years agoGH-102973: Slim down Fedora packages in the dev container (#103283)
Miro Hrončok [Mon, 24 Apr 2023 16:12:15 +0000 (18:12 +0200)] 
GH-102973: Slim down Fedora packages in the dev container (#103283)

2 years agogh-103091: Add PyUnstable_Type_AssignVersionTag (#103095)
Brett Simmers [Mon, 24 Apr 2023 16:07:47 +0000 (09:07 -0700)] 
gh-103091: Add PyUnstable_Type_AssignVersionTag (#103095)

2 years agoAdd tests for empty range equality (#103751)
Kirill [Mon, 24 Apr 2023 14:32:15 +0000 (17:32 +0300)] 
Add tests for empty range equality (#103751)

2 years agogh-103712: Increase the length of the type name in AttributeError messages (#103713)
Alex Gaynor [Mon, 24 Apr 2023 14:23:08 +0000 (08:23 -0600)] 
gh-103712: Increase the length of the type name in AttributeError messages (#103713)

2 years agogh-44123: Add note on relative path for os.exec* (GH-93826)
Stanley [Mon, 24 Apr 2023 13:52:31 +0000 (06:52 -0700)] 
gh-44123: Add note on relative path for os.exec* (GH-93826)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years agoChange 'dependant' to 'dependent' (#103745)
Christopher Chavez [Mon, 24 Apr 2023 13:40:30 +0000 (08:40 -0500)] 
Change 'dependant' to 'dependent' (#103745)

The word 'dependent' is both an adjective and a noun. A 'dependant' is a British alternative spelling for the noun form. In idlelib.sidebar, 'OS-dependant' is an adjective and clearly wrong. In 'Using', 'dependant' as a noun would be acceptable in Britain, but we use American spellings in Python docs.
https://www.merriam-webster.com/words-at-play/spelling-variants-dependent-vs-dependant

2 years agogh-102950: Implement PEP 706 – Filter for tarfile.extractall (#102953)
Petr Viktorin [Mon, 24 Apr 2023 08:58:06 +0000 (10:58 +0200)] 
gh-102950: Implement PEP 706 – Filter for tarfile.extractall (#102953)

2 years agogh-103285: Rewrite _splitlines_no_ff to improve performance (#103307)
Tian Gao [Mon, 24 Apr 2023 05:03:49 +0000 (22:03 -0700)] 
gh-103285: Rewrite _splitlines_no_ff to improve performance (#103307)

2 years agogh-103685: Fix tkinter.Menu.index() for Tk 8.7 (#103686)
Christopher Chavez [Mon, 24 Apr 2023 01:31:44 +0000 (20:31 -0500)] 
gh-103685: Fix tkinter.Menu.index() for Tk 8.7 (#103686)

---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 years agogh-103668: Run pyugrade on idlelib (#103671)
Nikita Sobolev [Sun, 23 Apr 2023 23:25:08 +0000 (02:25 +0300)] 
gh-103668: Run pyugrade on idlelib (#103671)

---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agogh-103724: Add test case if no arg as provided in os.register_at_fork (gh-103725)
Ankit Kumar Pandey [Sun, 23 Apr 2023 23:14:14 +0000 (04:44 +0530)] 
gh-103724: Add test case if no arg as provided in os.register_at_fork (gh-103725)

2 years agogh-81403: Add NEWS entry for PR #13951 (#103729)
Senthil Kumaran [Sun, 23 Apr 2023 22:58:03 +0000 (16:58 -0600)] 
gh-81403: Add NEWS entry for PR #13951 (#103729)

Add NEWS entry for PR #13951

2 years agogh-101688: Implement types.get_original_bases (#101827)
James Hilton-Balfe [Sun, 23 Apr 2023 19:24:30 +0000 (20:24 +0100)] 
gh-101688: Implement types.get_original_bases (#101827)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agoGH-103718: Correctly cache and restore f-string buffers when needed (GH-103719)
Lysandros Nikolaou [Sun, 23 Apr 2023 19:06:10 +0000 (13:06 -0600)] 
GH-103718: Correctly cache and restore f-string buffers when needed (GH-103719)

2 years agogh-103592: Add tests of `Literal` with `Enum` and `Union` of `Literal`s (#103706)
Nikita Sobolev [Sun, 23 Apr 2023 17:50:23 +0000 (20:50 +0300)] 
gh-103592: Add tests of `Literal` with `Enum` and `Union` of `Literal`s (#103706)

2 years agogh-103716: Add test support requires fork in simple_subprocess (gh-103717)
Ankit Kumar Pandey [Sun, 23 Apr 2023 17:19:16 +0000 (22:49 +0530)] 
gh-103716: Add test support requires fork in simple_subprocess  (gh-103717)

add requires fork as test case depends on this

2 years agogh-101408: PyObject_GC_Resize should calculate preheader size. (gh-101741)
Dong-hee Na [Sun, 23 Apr 2023 17:18:49 +0000 (11:18 -0600)] 
gh-101408: PyObject_GC_Resize should calculate preheader size. (gh-101741)

2 years agoGH-103699: Add `__orig_bases__` to various typing classes (#103698)
Adrian Garcia Badaracco [Sun, 23 Apr 2023 14:33:39 +0000 (08:33 -0600)] 
GH-103699:  Add `__orig_bases__` to various typing classes (#103698)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-81403: Fix for CacheFTPHandler in urllib (#13951)
Dan Hemberger [Sun, 23 Apr 2023 04:41:23 +0000 (21:41 -0700)] 
gh-81403: Fix for CacheFTPHandler in urllib (#13951)

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>
2 years agogh-102310: Change error range for invalid bytes literals (#103663)
Nikita Sobolev [Sun, 23 Apr 2023 00:08:27 +0000 (03:08 +0300)] 
gh-102310: Change error range for invalid bytes literals (#103663)

2 years agogh-68654: Clarify subdirectories used by pkgutil.extend_path (#103701)
Randy [Sat, 22 Apr 2023 23:33:50 +0000 (17:33 -0600)] 
gh-68654: Clarify subdirectories used by pkgutil.extend_path (#103701)

Clarify sub directories used by pkgutil.extend_path in the docs and the docstring

2 years agoRevert "Avoid error lexing multiprocessing docs code block on Pygments 2.15.0" (...
Hugo van Kemenade [Sat, 22 Apr 2023 21:41:58 +0000 (15:41 -0600)] 
Revert "Avoid error lexing multiprocessing docs code block on Pygments 2.15.0" (#103616)

This reverts commit ace51dcdb781b0608b1273d246ebaee849561435.

2 years agogh-84436: Implement Immortal Objects (gh-19474)
Eddie Elizondo [Sat, 22 Apr 2023 19:39:37 +0000 (15:39 -0400)] 
gh-84436: Implement Immortal Objects (gh-19474)

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.

2 years agogh-103661: Apply bugfix from importlib_metadata 6.5.1 and restore test. (#103681)
Jason R. Coombs [Sat, 22 Apr 2023 17:52:51 +0000 (13:52 -0400)] 
gh-103661: Apply bugfix from importlib_metadata 6.5.1 and restore test. (#103681)

2 years agogh-83791: Raise TypeError for len(memoryview_0d) (#18463)
Eric Wieser [Sat, 22 Apr 2023 16:32:47 +0000 (17:32 +0100)] 
gh-83791: Raise TypeError for len(memoryview_0d) (#18463)

Changes the behaviour of `len` on a zero-dimensional `memoryview` to raise `TypeError`. Previously, `len` would return `1`.

2 years agoGH-103484: Fix broken links reported by linkcheck (#103608)
Rafael Fontenelle [Sat, 22 Apr 2023 14:24:47 +0000 (11:24 -0300)] 
GH-103484: Fix broken links reported by linkcheck (#103608)

* 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>
2 years agoGH-103475: cache() and lru_cache() do not have a "call once" guarantee (GH-103669)
Raymond Hettinger [Sat, 22 Apr 2023 14:18:25 +0000 (09:18 -0500)] 
GH-103475: cache() and lru_cache() do not have a "call once" guarantee (GH-103669)

2 years agoDescriptor HowTo: Update to include attributes added in Python 3.10 (GH-103666)
Raymond Hettinger [Sat, 22 Apr 2023 13:29:40 +0000 (08:29 -0500)] 
Descriptor HowTo:  Update to include attributes added in Python 3.10  (GH-103666)

2 years agogh-103559: Update bundled pip version to 23.1.1 (gh-103560)
Paul Moore [Sat, 22 Apr 2023 11:19:23 +0000 (12:19 +0100)] 
gh-103559: Update bundled pip version to 23.1.1 (gh-103560)

* Update bundled pip version to 23.1
* Update to pip 23.1.1

2 years agogh-103556: [inspect.Signature] disallow pos-or-kw params without default after pos...
Nikita Sobolev [Sat, 22 Apr 2023 05:45:10 +0000 (08:45 +0300)] 
gh-103556: [inspect.Signature] disallow pos-or-kw params without default after pos-only with default (#103557)

2 years agoMinor improvements to the functools docs (#103672)
Raymond Hettinger [Sat, 22 Apr 2023 01:53:50 +0000 (20:53 -0500)] 
Minor improvements to the functools docs (#103672)

* Use an f-string for improved readability

* Put version notes in chronological order

2 years agoGH-103415: Document itertools.batched() in whatsnew.3.12 (#103670)
Raymond Hettinger [Sat, 22 Apr 2023 01:52:37 +0000 (20:52 -0500)] 
GH-103415: Document itertools.batched() in whatsnew.3.12 (#103670)

2 years agogh-103661: Skip failing test on Windows. (#103662)
Jason R. Coombs [Fri, 21 Apr 2023 15:30:30 +0000 (11:30 -0400)] 
gh-103661: Skip failing test on Windows. (#103662)

2 years agogh-103082: Fix shifted field initialization in `instrumentation.c` (GH-103561)
Oleg Iarygin [Fri, 21 Apr 2023 13:27:50 +0000 (17:27 +0400)] 
gh-103082: Fix shifted field initialization in `instrumentation.c` (GH-103561)

Fix shifted field initialization in instrumentation.c

2 years agoSync with importlib_metadata 6.5 (GH-103584)
Jason R. Coombs [Fri, 21 Apr 2023 02:12:48 +0000 (22:12 -0400)] 
Sync with importlib_metadata 6.5 (GH-103584)

2 years agogh-99352: Respect `http.client.HTTPConnection.debuglevel` in `urllib.request.Abstract...
Wheeler Law [Fri, 21 Apr 2023 02:04:25 +0000 (21:04 -0500)] 
gh-99352: Respect `http.client.HTTPConnection.debuglevel` in `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>
2 years agogh-98641: Document difference between task group and gather (#103644)
Adrien [Thu, 20 Apr 2023 14:07:41 +0000 (16:07 +0200)] 
gh-98641: Document difference between task group and gather (#103644)

The purpose of the comments is to rule out the implication that asyncio.TaskGroup is a drop-in replacement / better alternative to asyncio.gather().

2 years agogh-98040: Move the Single-Phase Init Tests Out of test_imp (gh-102561)
Eric Snow [Wed, 19 Apr 2023 22:09:35 +0000 (16:09 -0600)] 
gh-98040: Move the Single-Phase Init Tests Out of test_imp (gh-102561)

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.

2 years agogh-83861: Fix datetime.astimezone() method (GH-101545)
Alexander Belopolsky [Wed, 19 Apr 2023 21:02:29 +0000 (17:02 -0400)] 
gh-83861: Fix datetime.astimezone() method (GH-101545)

2 years agogh-102856: Clean some of the PEP 701 tokenizer implementation (#103634)
Pablo Galindo Salgado [Wed, 19 Apr 2023 20:51:31 +0000 (14:51 -0600)] 
gh-102856: Clean some of the PEP 701 tokenizer implementation (#103634)

2 years agogh-102856: Skip test_mismatched_parens in WASI builds (#103633)
Pablo Galindo Salgado [Wed, 19 Apr 2023 17:53:34 +0000 (11:53 -0600)] 
gh-102856: Skip test_mismatched_parens in WASI builds (#103633)

2 years agogh-102856: Initial implementation of PEP 701 (#102855)
Pablo Galindo Salgado [Wed, 19 Apr 2023 16:18:16 +0000 (17:18 +0100)] 
gh-102856: Initial implementation of PEP 701 (#102855)

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>
2 years agogh-103583: Add ref. dependency between multibytecodec modules (#103589)
Erlend E. Aasland [Wed, 19 Apr 2023 16:02:17 +0000 (10:02 -0600)] 
gh-103583: Add ref. dependency between multibytecodec modules (#103589)

2 years agogh-83004: Harden msvcrt further (#103420)
Erlend E. Aasland [Wed, 19 Apr 2023 14:15:50 +0000 (08:15 -0600)] 
gh-83004: Harden msvcrt further (#103420)

2 years agoGH-88342: clarify that `asyncio.as_completed` accepts generators yielding tasks ...
Kumar Aditya [Wed, 19 Apr 2023 10:21:53 +0000 (15:51 +0530)] 
GH-88342: clarify that `asyncio.as_completed` accepts generators yielding tasks (#103626)

2 years agogh-102778: IDLE - make sys.last_exc available in Shell after traceback (#103314)
Irit Katriel [Wed, 19 Apr 2023 05:05:52 +0000 (06:05 +0100)] 
gh-102778: IDLE - make sys.last_exc available in Shell after traceback (#103314)

---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agogh-103582: Remove last references to `argparse.REMAINDER` from docs (#103586)
Nikita Sobolev [Wed, 19 Apr 2023 05:02:48 +0000 (08:02 +0300)] 
gh-103582: Remove last references to `argparse.REMAINDER` from docs (#103586)

2 years agogh-103583: Always pass multibyte codec structs as const (#103588)
Erlend E. Aasland [Wed, 19 Apr 2023 03:08:16 +0000 (21:08 -0600)] 
gh-103583: Always pass multibyte codec structs as const (#103588)

2 years agogh-103617: Fix compiler warning in _iomodule.c (#103618)
Erlend E. Aasland [Wed, 19 Apr 2023 02:30:54 +0000 (20:30 -0600)] 
gh-103617: Fix compiler warning in _iomodule.c (#103618)

2 years agogh-103596: [Enum] do not shadow mixed-in methods/attributes (GH-103600)
Ethan Furman [Tue, 18 Apr 2023 23:19:23 +0000 (16:19 -0700)] 
gh-103596: [Enum] do not shadow mixed-in methods/attributes (GH-103600)

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>
2 years agoGH-100530: Change the error message for non-class class patterns (GH-103576)
Nikita Sobolev [Tue, 18 Apr 2023 17:41:14 +0000 (20:41 +0300)] 
GH-100530: Change the error message for non-class class patterns (GH-103576)

2 years agogh-95299: Remove lingering setuptools reference in installer scripts (GH-103613)
Steve Dower [Tue, 18 Apr 2023 16:47:08 +0000 (17:47 +0100)] 
gh-95299: Remove lingering setuptools reference in installer scripts (GH-103613)

2 years ago[Doc] Fix a typo in optparse.rst (#103504)
zyckk4 [Tue, 18 Apr 2023 11:21:26 +0000 (19:21 +0800)] 
[Doc] Fix a typo in optparse.rst (#103504)

2 years agogh-101100: Fix broken reference `__format__` in `string.rst` (#103531)
yuki [Tue, 18 Apr 2023 11:18:53 +0000 (20:18 +0900)] 
gh-101100: Fix broken reference `__format__` in `string.rst` (#103531)

2 years agogh-95299: Stop installing setuptools as a part of ensurepip and venv (#101039)
Pradyun Gedam [Tue, 18 Apr 2023 04:43:34 +0000 (23:43 -0500)] 
gh-95299: Stop installing setuptools as a part of ensurepip and venv (#101039)

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>
2 years agoGH-103484: Docs: add linkcheck allowed redirects entries for most cases (#103569)
Rafael Fontenelle [Tue, 18 Apr 2023 02:57:53 +0000 (23:57 -0300)] 
GH-103484: Docs: add linkcheck allowed redirects entries for most cases (#103569)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years agogh-67230: update whatsnew note for csv changes (#103598)
Skip Montanaro [Tue, 18 Apr 2023 01:21:19 +0000 (20:21 -0500)] 
gh-67230: update whatsnew note for csv changes (#103598)

2 years agogh-103449: Fix a bug in dataclass docstring generation (#103454)
Nikita Sobolev [Mon, 17 Apr 2023 23:33:22 +0000 (02:33 +0300)] 
gh-103449: Fix a bug in dataclass docstring generation (#103454)

2 years agogh-103092: Isolate winreg (#103250)
AN Long [Mon, 17 Apr 2023 18:30:48 +0000 (02:30 +0800)] 
gh-103092: Isolate winreg (#103250)

2 years agogh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)
Steve Dower [Mon, 17 Apr 2023 16:33:54 +0000 (17:33 +0100)] 
gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)

Also touches the affected files in meaningless ways to ensure they get updated when pulling

2 years agogh-101525: Fix make test if the --enable-bolt enabled (gh-103574)
Dong-hee Na [Mon, 17 Apr 2023 14:14:18 +0000 (23:14 +0900)] 
gh-101525: Fix make test if the --enable-bolt enabled (gh-103574)

2 years agoRemove `expert-*` from `project-updater` GH workflow (#103579)
Ezio Melotti [Mon, 17 Apr 2023 03:26:22 +0000 (11:26 +0800)] 
Remove `expert-*` from `project-updater` GH workflow (#103579)

2 years agogh-103583: Add codecs and maps to _codecs_* module state (#103540)
Erlend E. Aasland [Mon, 17 Apr 2023 00:41:25 +0000 (02:41 +0200)] 
gh-103583: Add codecs and maps to _codecs_* module state (#103540)

2 years agogh-48330: address review comments to PR-12271 (#103209)
Giampaolo Rodola [Sun, 16 Apr 2023 22:19:44 +0000 (00:19 +0200)] 
gh-48330: address review comments to PR-12271 (#103209)

address review comments to PR-12271

Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
2 years agogh-103527: Add multibytecodec.h as make dep for _codecs_* (#103567)
Erlend E. Aasland [Sun, 16 Apr 2023 03:57:30 +0000 (05:57 +0200)] 
gh-103527: Add multibytecodec.h as make dep for _codecs_* (#103567)

2 years agogh-103553: Improve `test_inspect`: add more assertions, remove unused (#103554)
Nikita Sobolev [Sat, 15 Apr 2023 20:48:31 +0000 (23:48 +0300)] 
gh-103553: Improve `test_inspect`: add more assertions, remove unused (#103554)

2 years agoGH-103517: Improve tests for `pathlib.Path.walk()` (GH-103518)
Barney Gale [Sat, 15 Apr 2023 16:35:17 +0000 (17:35 +0100)] 
GH-103517: Improve tests for `pathlib.Path.walk()` (GH-103518)

2 years agogh-102114: Make dis print more concise tracebacks for syntax errors in str inputs...
chgnrdv [Sat, 15 Apr 2023 05:53:31 +0000 (08:53 +0300)] 
gh-102114: Make dis print more concise tracebacks for syntax errors in str inputs (#102115)

2 years agoGH-78079: Fix UNC device path root normalization in pathlib (GH-102003)
Barney Gale [Fri, 14 Apr 2023 20:55:41 +0000 (21:55 +0100)] 
GH-78079: Fix UNC device path root normalization in pathlib (GH-102003)

We no longer add a root to device paths such as `//./PhysicalDrive0`,
`//?/BootPartition` and `//./c:` while normalizing. We also avoid adding a
root to incomplete UNC share paths, like `//`, `//a` and `//a/`.

Co-authored-by: Eryk Sun <eryksun@gmail.com>
2 years agogh-101517: Add regression test for a lineno bug in try/except* impacting pdb (#103547)
Tian Gao [Fri, 14 Apr 2023 20:40:31 +0000 (13:40 -0700)] 
gh-101517: Add regression test for a lineno bug in try/except* impacting pdb (#103547)

2 years agogh-103527: Add make deps for _codecs_* and _multibytecodec (#103528)
Erlend E. Aasland [Fri, 14 Apr 2023 18:47:13 +0000 (20:47 +0200)] 
gh-103527: Add make deps for _codecs_* and _multibytecodec (#103528)

2 years agogh-103532: Fix reST syntax in NEWS entry (GH-103544)
Zachary Ware [Fri, 14 Apr 2023 16:03:28 +0000 (11:03 -0500)] 
gh-103532: Fix reST syntax in NEWS entry (GH-103544)

2 years agogh-103532: Add NEWS entry (#103542)
Zachary Ware [Fri, 14 Apr 2023 15:28:53 +0000 (10:28 -0500)] 
gh-103532: Add NEWS entry (#103542)

2 years agogh-103532: Remove TKINTER_PROTECT_LOADTK code (GH-103535)
Christopher Chavez [Fri, 14 Apr 2023 14:04:16 +0000 (09:04 -0500)] 
gh-103532: Remove TKINTER_PROTECT_LOADTK code (GH-103535)

This was only needed for Tk 8.4.13 and older,
but Tkinter already requires at least 8.5.12.

2 years agogh-103180: Add CI timeouts to all GitHub Actions jobs (#103437)
Nikita Sobolev [Fri, 14 Apr 2023 09:01:10 +0000 (12:01 +0300)] 
gh-103180: Add CI timeouts to all GitHub Actions jobs (#103437)

2 years agoRemove double space in import error message (#103458)
Ned Batchelder [Fri, 14 Apr 2023 07:45:14 +0000 (03:45 -0400)] 
Remove double space in import error message (#103458)

2 years agoipaddress: Remove non-existent ip_str param from docstring (#103461)
Sergii Dymchenko [Fri, 14 Apr 2023 07:44:10 +0000 (00:44 -0700)] 
ipaddress: Remove non-existent ip_str param from docstring (#103461)

2 years agoFix syntax typo in isolating extensions doc (#103516)
AN Long [Fri, 14 Apr 2023 07:40:25 +0000 (15:40 +0800)] 
Fix syntax typo in isolating extensions doc (#103516)

2 years agogh-103406: Modernize pos-only arguments usage in `test_signature` (#103407)
Nikita Sobolev [Fri, 14 Apr 2023 07:06:31 +0000 (10:06 +0300)] 
gh-103406: Modernize pos-only arguments usage in `test_signature` (#103407)

2 years agoProofread howto/perf_profiling.rst (#103530)
Boris Verkhovskiy [Fri, 14 Apr 2023 03:07:49 +0000 (04:07 +0100)] 
Proofread howto/perf_profiling.rst (#103530)

2 years agoFix unused functions warnings in instrumentation.c (GH-103515)
Benjamin Peterson [Thu, 13 Apr 2023 17:45:03 +0000 (12:45 -0500)] 
Fix unused functions warnings in instrumentation.c (GH-103515)

2 years agogh-103479: [Enum] require __new__ to be considered a data type (GH-103495)
Ethan Furman [Thu, 13 Apr 2023 15:31:03 +0000 (08:31 -0700)] 
gh-103479: [Enum] require __new__ to be considered a data type (GH-103495)

a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type

2 years agogh-103365: [Enum] STRICT boundary corrections (GH-103494)
Ethan Furman [Thu, 13 Apr 2023 15:24:33 +0000 (08:24 -0700)] 
gh-103365: [Enum] STRICT boundary corrections (GH-103494)

STRICT boundary:

- fix bitwise operations
- make default for Flag

2 years agoGH-103488: Use return-offset, not yield-offset. (GH-103502)
Mark Shannon [Thu, 13 Apr 2023 15:19:07 +0000 (16:19 +0100)] 
GH-103488: Use return-offset, not yield-offset. (GH-103502)

* Use return-offset, not yield-offset, so that instruction pointer is correct when sending to a generator or coroutine.

2 years agogh-103088: Fix test_venv error message to avoid bytes/str warning (GH-103500)
Stanislav Syekirin [Thu, 13 Apr 2023 13:17:14 +0000 (15:17 +0200)] 
gh-103088: Fix test_venv error message to avoid bytes/str warning (GH-103500)

2 years agoGH-103082: Turn on branch events for FOR_ITER instructions. (#103507)
Mark Shannon [Thu, 13 Apr 2023 12:56:09 +0000 (13:56 +0100)] 
GH-103082: Turn on branch events for FOR_ITER instructions. (#103507)

Turn on branch events for FOR_ITER instructions.