]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years agogh-108113: Make it possible to create an optimized AST (#108154)
Irit Katriel [Mon, 21 Aug 2023 16:31:30 +0000 (17:31 +0100)] 
gh-108113: Make it possible to create an optimized AST (#108154)

2 years agodocs: fix grammar in isolating-extensions.rst (#108037)
David Lechner [Mon, 21 Aug 2023 15:41:34 +0000 (10:41 -0500)] 
docs: fix grammar in isolating-extensions.rst (#108037)

2 years agogh-95065, gh-107704: Argument Clinic: support multiple '/ [from ...]' and '* [from...
Serhiy Storchaka [Mon, 21 Aug 2023 13:59:58 +0000 (16:59 +0300)] 
gh-95065, gh-107704: Argument Clinic: support multiple '/ [from ...]' and '* [from ...]' markers (GH-108132)

2 years agogh-107905: Test raising `__value__` for `TypeAliasType` (#107997)
Nikita Sobolev [Mon, 21 Aug 2023 13:52:37 +0000 (16:52 +0300)] 
gh-107905: Test raising `__value__` for `TypeAliasType` (#107997)

2 years agoRun sphinx-lint on Misc/NEWS.d/next/ (#108212)
Hugo van Kemenade [Mon, 21 Aug 2023 13:13:55 +0000 (16:13 +0300)] 
Run sphinx-lint on Misc/NEWS.d/next/ (#108212)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485)
balmeida-nokia [Mon, 21 Aug 2023 11:39:06 +0000 (12:39 +0100)] 
gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485)

In the stack call of: _init_read_gz()
```
_read, tarfile.py:548
read, tarfile.py:526
_init_read_gz, tarfile.py:491
```
a try;except exists that uses `self.exception`, so it needs to be set before
calling _init_read_gz().

2 years agogh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWith...
Serhiy Storchaka [Mon, 21 Aug 2023 11:16:31 +0000 (14:16 +0300)] 
gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929)

2 years agogh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)
Petr Viktorin [Mon, 21 Aug 2023 10:56:46 +0000 (12:56 +0200)] 
gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
2 years agoImprove references in the tutorial (GH-108069)
Serhiy Storchaka [Mon, 21 Aug 2023 10:41:01 +0000 (13:41 +0300)] 
Improve references in the tutorial (GH-108069)

* Use full qualified names for references (even if they do not work now,
  they will work in future).
* Silence references to examples.

2 years agogh-105736: Sync pure python version of OrderedDict with the C version (#108098)
Raymond Hettinger [Mon, 21 Aug 2023 09:49:08 +0000 (04:49 -0500)] 
gh-105736: Sync pure python version of OrderedDict with the C version (#108098)

2 years agogh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode...
Joon Hwan 김준환 [Mon, 21 Aug 2023 07:55:09 +0000 (16:55 +0900)] 
gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168)

2 years agoResolve reference warnings in faq/gui.rst (#108147)
Adam Turner [Mon, 21 Aug 2023 07:37:52 +0000 (08:37 +0100)] 
Resolve reference warnings in faq/gui.rst (#108147)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years agogh-107265: Fix code_richcompare for ENTER_EXECUTOR case (gh-108165)
Dong-hee Na [Mon, 21 Aug 2023 05:50:09 +0000 (14:50 +0900)] 
gh-107265: Fix code_richcompare for ENTER_EXECUTOR case (gh-108165)

2 years agogh-107526: Fix test_module_level_callable_unrepresentable_default (gh-108187)
Dong-hee Na [Mon, 21 Aug 2023 04:51:31 +0000 (13:51 +0900)] 
gh-107526: Fix test_module_level_callable_unrepresentable_default (gh-108187)

2 years agogh-107526: Revert "gh-100357: Convert several functions in bltinsmodule to AC" (...
Nikita Sobolev [Mon, 21 Aug 2023 00:54:10 +0000 (03:54 +0300)] 
gh-107526: Revert "gh-100357: Convert several functions in bltinsmodule to AC" (#107542)

2 years agogh-104504: cases generator: Add `--warn-unreachable` to the mypy config (#108112)
Alex Waygood [Sun, 20 Aug 2023 23:40:41 +0000 (00:40 +0100)] 
gh-104504: cases generator: Add `--warn-unreachable` to the mypy config (#108112)

2 years agoResolve reference warnings in faq/library.rst (#108149)
Adam Turner [Sun, 20 Aug 2023 19:01:13 +0000 (20:01 +0100)] 
Resolve reference warnings in faq/library.rst (#108149)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years agoResolve reference warnings in faq/design.rst (#108148)
Adam Turner [Sun, 20 Aug 2023 18:34:27 +0000 (19:34 +0100)] 
Resolve reference warnings in faq/design.rst (#108148)

2 years agoDocs: document 'manager' and '_log' attrs of logging.Logging (#108145)
Erlend E. Aasland [Sun, 20 Aug 2023 16:01:10 +0000 (18:01 +0200)] 
Docs: document 'manager' and '_log' attrs of logging.Logging (#108145)

Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agoResolve reference warnings in faq/programming.rst (#108150)
Adam Turner [Sun, 20 Aug 2023 13:53:28 +0000 (14:53 +0100)] 
Resolve reference warnings in faq/programming.rst (#108150)

2 years agoDocs: Fix Sphinx warnings in logging.rst (GH-108139)
Erlend E. Aasland [Sun, 20 Aug 2023 11:19:07 +0000 (13:19 +0200)] 
Docs: Fix Sphinx warnings in logging.rst (GH-108139)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2 years agoDocs: Fix Sphinx warnings in license.rst (#108142)
Erlend E. Aasland [Sun, 20 Aug 2023 11:10:48 +0000 (13:10 +0200)] 
Docs: Fix Sphinx warnings in license.rst (#108142)

- Fix links to stdlib modules
- Silence links to external functions

2 years agoDocs: Fix Sphinx warnings in sys.rst (#108106)
Erlend E. Aasland [Sun, 20 Aug 2023 11:09:33 +0000 (13:09 +0200)] 
Docs: Fix Sphinx warnings in sys.rst (#108106)

- Mark up named tuple attributes as attributes
- Remove links for external functions
- io.BufferedIOBase has no 'buffer' attribute;
  remove the link and mark up using :attr:`!buffer`
- (Re)format some tables as bullet lists:
  - sys._emscripten_info
  - sys.hash_info
  - sys.int_info
  - sys.thread_info
- In the paragraphs mentioning 'f_trace_lines' and 'f_trace_opcodes',
  add links to the frame objects reference.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agogh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER...
Tomas R [Sun, 20 Aug 2023 10:54:06 +0000 (12:54 +0200)] 
gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (#107769)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years agogh-107619: Extend functools LRU cache docs with generators and async functions (...
Hadházy Tamás [Sun, 20 Aug 2023 10:33:15 +0000 (11:33 +0100)] 
gh-107619: Extend functools LRU cache docs with generators and async functions (#107934)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years agoFix patchcheck for `asyncio.tasks` (#108159)
Kumar Aditya [Sun, 20 Aug 2023 09:00:42 +0000 (14:30 +0530)] 
Fix patchcheck for `asyncio.tasks` (#108159)

2 years agoFix misspellings in sysconfig docs (#108156)
Rafael Fontenelle [Sun, 20 Aug 2023 08:11:39 +0000 (05:11 -0300)] 
Fix misspellings in sysconfig docs (#108156)

2 years agogh-107980: fix doc role for asyncio.timeouts (#108126)
Tin Tvrtković [Sat, 19 Aug 2023 20:14:38 +0000 (22:14 +0200)] 
gh-107980: fix doc role for asyncio.timeouts (#108126)

2 years agoDocs: Remove links to external C functions and macros in os.rst (#108138)
Erlend E. Aasland [Sat, 19 Aug 2023 17:03:26 +0000 (19:03 +0200)] 
Docs: Remove links to external C functions and macros in os.rst (#108138)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agogh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918)
Serhiy Storchaka [Sat, 19 Aug 2023 11:51:03 +0000 (14:51 +0300)] 
gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918)

Such C API functions as PyErr_SetString(), PyErr_Format(),
PyErr_SetFromErrnoWithFilename() and many others no longer crash or
ignore errors if it failed to format the error message or decode the
filename. Instead, they keep a corresponding error.

2 years agogh-72684: Tkinter: provide interface for "tk busy" subcommands (GH-107684)
Serhiy Storchaka [Sat, 19 Aug 2023 11:48:02 +0000 (14:48 +0300)] 
gh-72684: Tkinter: provide interface for "tk busy" subcommands (GH-107684)

Add tkinter.Misc methods: tk_busy_hold(), tk_busy_configure(), tk_busy_cget(),
tk_busy_forget(), tk_busy_current(), and tk_busy_status().

2 years agoDocs: format sys.float_info properly (#108107)
Erlend E. Aasland [Sat, 19 Aug 2023 08:34:34 +0000 (10:34 +0200)] 
Docs: format sys.float_info properly (#108107)

- Normalise capitalisation and punctuation
- Use attribute markup for named tuple attributes
- Use :c:macro: markup for C macros
- Use a list for the 'rounds' attribute values
- Use list-table, for better .rst readability
- Remove one unneeded sys.float_info.dig link

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agogh-107704: Argument Clinic: add support for deprecating keyword use of parameters...
Serhiy Storchaka [Sat, 19 Aug 2023 07:13:35 +0000 (10:13 +0300)] 
gh-107704: Argument Clinic: add support for deprecating keyword use of parameters (GH-107984)

It is now possible to deprecate passing keyword arguments for
keyword-or-positional parameters with Argument Clinic, using the new
'/ [from X.Y]' syntax.
(To be read as "positional-only from Python version X.Y")

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-101100: Only show GitHub check annotations on changed doc paragraphs (#108065)
C.A.M. Gerlach [Sat, 19 Aug 2023 00:43:28 +0000 (19:43 -0500)] 
gh-101100: Only show GitHub check annotations on changed doc paragraphs (#108065)

* Only show GitHub check annotations on changed doc paragraphs
* Improve check-warnings script arg parsing following Hugo's suggestions
* Factor filtering warnings by modified diffs into helper function
* Build docs on unmerged branch so warning lines match & avoid deep clone

---------

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-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897)
Ned Deily [Fri, 18 Aug 2023 21:38:24 +0000 (17:38 -0400)] 
gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897)

2 years agogh-107565: Update multissltests and GitHub CI workflows to use OpenSSL 1.1.1v, 3...
Ned Deily [Fri, 18 Aug 2023 19:48:20 +0000 (15:48 -0400)] 
gh-107565: Update multissltests and GitHub CI workflows to use OpenSSL 1.1.1v, 3.0.10, and 3.1.2. (GH-107896)

2 years agogh-107801: Improve the accuracy of os.lseek docs (#107935)
Erlend E. Aasland [Fri, 18 Aug 2023 17:53:51 +0000 (19:53 +0200)] 
gh-107801: Improve the accuracy of os.lseek docs (#107935)

- name the last parameter *whence*, like it is for seek() methods on
  file objects
- add param docstrings
- structure the valid *whence* params

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agoMinor code clean-up for the factor() recipe (GH-108114)
Raymond Hettinger [Fri, 18 Aug 2023 17:13:58 +0000 (12:13 -0500)] 
Minor code clean-up for the factor() recipe (GH-108114)

2 years agogh-107995: Fix doctest collection of functools.cached_property objects (#107996)
Tyler Smart [Fri, 18 Aug 2023 15:44:38 +0000 (08:44 -0700)] 
gh-107995: Fix doctest collection of functools.cached_property objects (#107996)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-104504: Run mypy on cases_generator in CI (and blacken the code) (gh-108090)
Dong-hee Na [Fri, 18 Aug 2023 13:42:45 +0000 (22:42 +0900)] 
gh-104504: Run mypy on cases_generator in CI (and blacken the code) (gh-108090)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and .close()... 104245/head
Erlend E. Aasland [Fri, 18 Aug 2023 11:39:12 +0000 (13:39 +0200)] 
gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and .close() (#108084)

- Add explanatory comments
- Add return value to connection_close() for propagating errors
- Always check the return value of connection_exec_stmt()
- Assert pre/post state in remove_callbacks()
- Don't log unraisable exceptions in case of interpreter shutdown
- Make sure we're not initialized if reinit fails
- Try to close the database even if ROLLBACK fails

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-108014: Add Py_IsFinalizing() function (#108032)
Victor Stinner [Fri, 18 Aug 2023 10:34:41 +0000 (12:34 +0200)] 
gh-108014: Add Py_IsFinalizing() function (#108032)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agoDocs: emphasise warning and add accurate markups for sys.unraisablehook (#108105)
Erlend E. Aasland [Fri, 18 Aug 2023 10:16:22 +0000 (12:16 +0200)] 
Docs: emphasise warning and add accurate markups for sys.unraisablehook (#108105)

2 years agogh-107801: Improve the docs of the SEEK_* constants (#108099)
Erlend E. Aasland [Thu, 17 Aug 2023 20:41:35 +0000 (22:41 +0200)] 
gh-107801: Improve the docs of the SEEK_* constants (#108099)

2 years agoDocs: Fix Sphinx warnings in io.rst (#107903)
Erlend E. Aasland [Thu, 17 Aug 2023 19:19:01 +0000 (21:19 +0200)] 
Docs: Fix Sphinx warnings in io.rst (#107903)

- Mark up parameter and argument names properly
- If possible, link to docs for methods like `seek`, `tell`, `write`, `read`, etc.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agogh-107944: Improve error message for function calls with bad keyword arguments (...
Pablo Galindo Salgado [Thu, 17 Aug 2023 18:39:42 +0000 (19:39 +0100)] 
gh-107944: Improve error message for function calls with bad keyword arguments (#107969)

2 years agogh-106581: Project through calls (#108067)
Guido van Rossum [Thu, 17 Aug 2023 18:29:58 +0000 (11:29 -0700)] 
gh-106581: Project through calls (#108067)

This finishes the work begun in gh-107760. When, while projecting a superblock, we encounter a call to a short, simple function, the superblock will now enter the function using `_PUSH_FRAME`, continue through it, and leave it using `_POP_FRAME`, and then continue through the original code. Multiple frame pushes and pops are even possible. It is also possible to stop appending to the superblock in the middle of a called function, when running out of space or encountering an unsupported bytecode.

2 years agogh-104683: Argument Clinic: Remove unreachable code from _module_and_class() (#108092)
Erlend E. Aasland [Thu, 17 Aug 2023 18:16:08 +0000 (20:16 +0200)] 
gh-104683: Argument Clinic: Remove unreachable code from _module_and_class() (#108092)

'not hasattr(parent, "classes")' is always false, since 'parent' is an
instance of either the Module, Class, or Clinic classes, and all of
them has a "classes" attribute.

2 years agogh-102029: Deprecate passing arguments to `_PyRLock` in `threading` (#102071)
Nikita Sobolev [Thu, 17 Aug 2023 16:19:07 +0000 (19:19 +0300)] 
gh-102029: Deprecate passing arguments to `_PyRLock` in `threading` (#102071)

2 years agogh-105481: opcode.h is no longer generated during the build (#108080)
Irit Katriel [Thu, 17 Aug 2023 16:07:58 +0000 (17:07 +0100)] 
gh-105481: opcode.h is no longer generated during the build (#108080)

2 years agoAdd workflow for automatic issue headers (#108054)
Adam Turner [Thu, 17 Aug 2023 15:37:07 +0000 (16:37 +0100)] 
Add workflow for automatic issue headers (#108054)

We don't get the "Bug report" and "Feature or enhancement" titles anymore, with the new issue forms. This brings them back!

2 years agogh-107801: Document SEEK_HOLE and SEEK_DATA (#107936)
Erlend E. Aasland [Thu, 17 Aug 2023 14:14:01 +0000 (16:14 +0200)] 
gh-107801: Document SEEK_HOLE and SEEK_DATA (#107936)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
2 years agogh-105481: fix out of date comment (#108079)
Irit Katriel [Thu, 17 Aug 2023 10:25:28 +0000 (11:25 +0100)] 
gh-105481: fix out of date comment (#108079)

2 years agoGH-108035: Remove the `_PyCFrame` struct as it is no longer needed for performance...
Mark Shannon [Thu, 17 Aug 2023 10:16:03 +0000 (11:16 +0100)] 
GH-108035: Remove the `_PyCFrame` struct as it is no longer needed for performance. (GH-108036)

2 years agoGH-107987: Remove the Distributing Python Modules guide (#108016)
Adam Turner [Thu, 17 Aug 2023 10:01:14 +0000 (11:01 +0100)] 
GH-107987: Remove the Distributing Python Modules guide (#108016)

2 years agogh-107298: Fix some references in the C API documentation (GH-108072)
Serhiy Storchaka [Thu, 17 Aug 2023 08:16:00 +0000 (11:16 +0300)] 
gh-107298: Fix some references in the C API documentation (GH-108072)

2 years agogh-105539: Explict resource management for connection objects in sqlite3 tests (...
Erlend E. Aasland [Thu, 17 Aug 2023 06:45:48 +0000 (08:45 +0200)] 
gh-105539: Explict resource management for connection objects in sqlite3 tests (#108017)

- Use memory_database() helper
- Move test utility functions to util.py
- Add convenience memory database mixin
- Add check() helper for closed connection tests

2 years agogh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029)
Serhiy Storchaka [Thu, 17 Aug 2023 06:44:05 +0000 (09:44 +0300)] 
gh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029)

2 years agogh-106581: Split `CALL_PY_EXACT_ARGS` into uops (#107760)
Guido van Rossum [Wed, 16 Aug 2023 23:26:43 +0000 (16:26 -0700)] 
gh-106581: Split `CALL_PY_EXACT_ARGS` into uops (#107760)

* Split `CALL_PY_EXACT_ARGS` into uops

This is only the first step for doing `CALL` in Tier 2.
The next step involves tracing into the called code object and back.
After that we'll have to do the remaining `CALL` specialization.
Finally we'll have to deal with `KW_NAMES`.

Note: this moves setting `frame->return_offset` directly in front of
`DISPATCH_INLINED()`, to make it easier to move it into `_PUSH_FRAME`.

2 years agogh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode...
Irit Katriel [Wed, 16 Aug 2023 22:25:18 +0000 (23:25 +0100)] 
gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py (#107971)

2 years agoGH-92584: Remove references to Distutils in configure.rst (#108043)
Adam Turner [Wed, 16 Aug 2023 21:13:05 +0000 (22:13 +0100)] 
GH-92584: Remove references to Distutils in configure.rst (#108043)

Remove references to Distutils in configure.rst

2 years agoGH-92584: Remove Installing Python Modules (Distutils version) (#108020)
Adam Turner [Wed, 16 Aug 2023 21:06:56 +0000 (22:06 +0100)] 
GH-92584: Remove Installing Python Modules (Distutils version) (#108020)

2 years agoGH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (#108040)
Adam Turner [Wed, 16 Aug 2023 20:43:30 +0000 (21:43 +0100)] 
GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (#108040)

Remove references to Distutils in ``PYTHONUSERBASE``

2 years agoGH-92584: Redirect macOS package installation to the PPUG (#108044)
Adam Turner [Wed, 16 Aug 2023 20:42:23 +0000 (21:42 +0100)] 
GH-92584: Redirect macOS package installation to the PPUG (#108044)

2 years agogh-56166: Deprecate passing confusing positional arguments in re functions (#107778)
Serhiy Storchaka [Wed, 16 Aug 2023 20:35:35 +0000 (23:35 +0300)] 
gh-56166: Deprecate passing confusing positional arguments in re functions (#107778)

Deprecate passing optional arguments maxsplit, count and flags in
module-level functions re.split(), re.sub() and re.subn() as positional.
They should only be passed by keyword.

2 years agogh-107211: Fix select extension build on Solaris (#108012)
Victor Stinner [Wed, 16 Aug 2023 20:26:22 +0000 (22:26 +0200)] 
gh-107211: Fix select extension build on Solaris (#108012)

Export the internal _Py_open() and _Py_write() functions for Solaris:
the select shared extension uses them.

2 years agoGH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (#108047)
Adam Turner [Wed, 16 Aug 2023 20:23:12 +0000 (21:23 +0100)] 
GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (#108047)

Remove reference to Distutils in ``cx_Freeze``'s description

2 years agogh-105522: [Enum] Correctly handle possible exceptions during testing (GH-105523)
Nikita Sobolev [Wed, 16 Aug 2023 19:17:28 +0000 (22:17 +0300)] 
gh-105522: [Enum] Correctly handle possible exceptions during testing (GH-105523)

2 years agogh-91051: fix type watcher test to be robust to existing watcher (#107989)
Carl Meyer [Wed, 16 Aug 2023 19:13:32 +0000 (13:13 -0600)] 
gh-91051: fix type watcher test to be robust to existing watcher (#107989)

2 years agoImprove the feature-proposal issue form (#108033)
Alex Waygood [Wed, 16 Aug 2023 18:38:58 +0000 (19:38 +0100)] 
Improve the feature-proposal issue form (#108033)

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 agoRemove Sphinx problem matcher to avoid annotating unchanged files (#108005)
Hugo van Kemenade [Wed, 16 Aug 2023 18:18:56 +0000 (21:18 +0300)] 
Remove Sphinx problem matcher to avoid annotating unchanged files (#108005)

2 years agogh-107298: Fix C API Buffer documentation (#108011)
Victor Stinner [Wed, 16 Aug 2023 16:24:46 +0000 (18:24 +0200)] 
gh-107298: Fix C API Buffer documentation (#108011)

2 years agoGH-92584: Drop reference to Distutils in ``site.USER_BASE`` (#108031)
Adam Turner [Wed, 16 Aug 2023 16:10:44 +0000 (17:10 +0100)] 
GH-92584: Drop reference to Distutils in ``site.USER_BASE`` (#108031)

Drop reference to Distutils in ``site.USER_BASE``

2 years agogh-104683: Argument Clinic: Extract parse function name helper (#107964)
Erlend E. Aasland [Wed, 16 Aug 2023 13:47:15 +0000 (15:47 +0200)] 
gh-104683: Argument Clinic: Extract parse function name helper (#107964)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-107909: Test explicit `object` base in PEP695 generic classes (#108001)
Nikita Sobolev [Wed, 16 Aug 2023 13:30:03 +0000 (16:30 +0300)] 
gh-107909: Test explicit `object` base in PEP695 generic classes (#108001)

2 years agogh-108000: Test that `lambda` also has `__type_params__` (#108002)
Nikita Sobolev [Wed, 16 Aug 2023 13:22:18 +0000 (16:22 +0300)] 
gh-108000: Test that `lambda` also has `__type_params__` (#108002)

2 years agogh-106659: Fix test_embed.test_forced_io_encoding() on Windows (#108010)
Victor Stinner [Wed, 16 Aug 2023 11:56:56 +0000 (13:56 +0200)] 
gh-106659: Fix test_embed.test_forced_io_encoding() on Windows (#108010)

Use config.legacy_windows_stdio=1 to avoid _io._WindowsConsoleIO.

2 years agogh-106368: Argument Clinic: Test that keyword params are disallowed in groups (#107985)
Erlend E. Aasland [Wed, 16 Aug 2023 10:39:56 +0000 (12:39 +0200)] 
gh-106368: Argument Clinic: Test that keyword params are disallowed in groups (#107985)

2 years agogh-105724: Add location information to `assert` errors (GH-105935)
Nikita Sobolev [Wed, 16 Aug 2023 10:35:38 +0000 (13:35 +0300)] 
gh-105724: Add location information to `assert` errors (GH-105935)

2 years agogh-106300: Improve errors testing in test_unittest.test_runner (GH-106737)
Nikita Sobolev [Wed, 16 Aug 2023 09:20:42 +0000 (12:20 +0300)] 
gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737)

Use a custom exception to prevent unintentional silence of actual errors.

2 years agogh-107955 Remove old comment about increasing the reference count in usage of Py_None...
brandonardenwalli [Wed, 16 Aug 2023 09:14:14 +0000 (11:14 +0200)] 
gh-107955 Remove old comment about increasing the reference count in usage of Py_None (#107993)

2 years agogh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612)
SKO [Wed, 16 Aug 2023 07:43:45 +0000 (16:43 +0900)] 
gh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612)

Restore the global Input Stream pointer after trying to match a sub-pattern.

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
2 years agogh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802)
6t8k [Wed, 16 Aug 2023 07:00:03 +0000 (07:00 +0000)] 
gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802)

Restore following CPython <= 3.10.5 behavior of shutil.make_archive()
that went away as part of gh-93160:

Do not create an empty archive if root_dir is not a directory, and, in
that case, raise FileNotFoundError or NotADirectoryError regardless
of format choice. Beyond the brought-back behavior, the function may
now also raise these exceptions in dry_run mode.

2 years agoMore actionable error message when spawn is incorrectly used. (#102203)
Yuxin Wu [Wed, 16 Aug 2023 01:03:45 +0000 (18:03 -0700)] 
More actionable error message when spawn is incorrectly used. (#102203)

Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years agogh-106368: Argument Clinic: Add tests for cloned functions with custom C base names...
Erlend E. Aasland [Tue, 15 Aug 2023 20:45:53 +0000 (22:45 +0200)] 
gh-106368: Argument Clinic: Add tests for cloned functions with custom C base names (#107977)

2 years agoNote that lnotab_notes.txt is only valid before 3.11 (#107961)
Martin DeMello [Tue, 15 Aug 2023 20:27:35 +0000 (13:27 -0700)] 
Note that lnotab_notes.txt is only valid before 3.11 (#107961)

2 years agogh-107557: Setup abstract interpretation (#107847)
Ken Jin [Tue, 15 Aug 2023 18:04:17 +0000 (02:04 +0800)] 
gh-107557: Setup abstract interpretation (#107847)

Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
Co-authored-by: Jules <57632293+juliapoo@users.noreply.github.com>
2 years agogh-106242: Minor fixup to avoid compiler warnings (GH-107983)
Steve Dower [Tue, 15 Aug 2023 17:02:32 +0000 (18:02 +0100)] 
gh-106242: Minor fixup to avoid compiler warnings (GH-107983)

2 years agogh-103082: remove assumption that INSTRUMENTED_LINE is the last instrumented opcode...
Irit Katriel [Tue, 15 Aug 2023 15:40:05 +0000 (16:40 +0100)] 
gh-103082: remove assumption that INSTRUMENTED_LINE is the last instrumented opcode (#107978)

2 years agogh-106242: Fix path truncation in os.path.normpath (GH-106816)
Finn Womack [Tue, 15 Aug 2023 15:33:00 +0000 (08:33 -0700)] 
gh-106242: Fix path truncation in os.path.normpath (GH-106816)

2 years agogh-107972: Argument Clinic: Ensure a C basename is provided after 'as' (#107973)
Erlend E. Aasland [Tue, 15 Aug 2023 14:41:40 +0000 (16:41 +0200)] 
gh-107972: Argument Clinic: Ensure a C basename is provided after 'as' (#107973)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agogh-107880: Argument Clinic: Fix regression in gh-107885 (#107974)
Erlend E. Aasland [Tue, 15 Aug 2023 14:00:52 +0000 (16:00 +0200)] 
gh-107880: Argument Clinic: Fix regression in gh-107885 (#107974)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-107963: Fix set_forkserver_preload to check the type of given list (#107965)
Dong-hee Na [Tue, 15 Aug 2023 13:58:12 +0000 (22:58 +0900)] 
gh-107963: Fix set_forkserver_preload to check the type of given list (#107965)

gh-107963: Fix set_forkserver_preload to check the type of given list

2 years agogh-107967: Fix infinite recursion on invalid escape sequence warning (#107968)
Lysandros Nikolaou [Tue, 15 Aug 2023 11:26:42 +0000 (14:26 +0300)] 
gh-107967: Fix infinite recursion on invalid escape sequence warning (#107968)

2 years agogh-93057: Deprecate positional use of optional sqlite3.connect() params (#107948)
Erlend E. Aasland [Tue, 15 Aug 2023 08:09:56 +0000 (10:09 +0200)] 
gh-93057: Deprecate positional use of optional sqlite3.connect() params (#107948)

2 years agogh-76913: Add "merge extras" feature to LoggerAdapter (GH-107292)
Romuald Brunet [Tue, 15 Aug 2023 07:23:54 +0000 (09:23 +0200)] 
gh-76913: Add "merge extras" feature to LoggerAdapter (GH-107292)

2 years agoRevert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC … (gh-107951)
Dong-hee Na [Mon, 14 Aug 2023 23:25:57 +0000 (08:25 +0900)] 
Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC … (gh-107951)

Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)"

This reverts commit 2e27da18952c6561f48dab706b5911135cedd7cf.

2 years agoConvert the GitHub issue templates into GitHub issue forms (#107920)
Alex Waygood [Mon, 14 Aug 2023 22:37:27 +0000 (23:37 +0100)] 
Convert the GitHub issue templates into GitHub issue forms (#107920)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years agoAttempt to speed up deepfreeze.py (#107887)
Guido van Rossum [Mon, 14 Aug 2023 21:41:27 +0000 (14:41 -0700)] 
Attempt to speed up deepfreeze.py (#107887)

* Instead of calling get_identifiers_and_strings(), extract identifiers and strings from pycore_global_strings.h.
* Avoid ast.literal_eval(), it's very slow.

2 years agogh-105481: reduce repetition in opcode metadata generation code (#107942)
Irit Katriel [Mon, 14 Aug 2023 18:36:29 +0000 (19:36 +0100)] 
gh-105481: reduce repetition in opcode metadata generation code (#107942)