summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-108113: Make it possible to create an optimized AST (#108154)Irit Katriel2023-08-2110-14/+124
|
* docs: fix grammar in isolating-extensions.rst (#108037)David Lechner2023-08-211-1/+1
|
* gh-95065, gh-107704: Argument Clinic: support multiple '/ [from ...]' and '* ↵Serhiy Storchaka2023-08-218-104/+565
| | | | [from ...]' markers (GH-108132)
* gh-107905: Test raising `__value__` for `TypeAliasType` (#107997)Nikita Sobolev2023-08-211-0/+18
|
* Run sphinx-lint on Misc/NEWS.d/next/ (#108212)Hugo van Kemenade2023-08-2114-18/+18
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485)balmeida-nokia2023-08-213-1/+19
| | | | | | | | | | | 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().
* gh-107916: Save the error code before decoding the filename in ↵Serhiy Storchaka2023-08-212-0/+12
| | | | PyErr_SetFromErrnoWithFilename() etc (GH-107929)
* gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)Petr Viktorin2023-08-214-9/+156
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
* Improve references in the tutorial (GH-108069)Serhiy Storchaka2023-08-216-49/+48
| | | | | * Use full qualified names for references (even if they do not work now, they will work in future). * Silence references to examples.
* gh-105736: Sync pure python version of OrderedDict with the C version (#108098)Raymond Hettinger2023-08-213-7/+23
|
* gh-107895: Fix test_asyncio.test_runners when run it in CPython's ↵Joon Hwan 김준환2023-08-211-1/+4
| | | | "development mode" (GH-108168)
* Resolve reference warnings in faq/gui.rst (#108147)Adam Turner2023-08-212-5/+5
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-107265: Fix code_richcompare for ENTER_EXECUTOR case (gh-108165)Dong-hee Na2023-08-212-0/+28
|
* gh-107526: Fix test_module_level_callable_unrepresentable_default (gh-108187)Dong-hee Na2023-08-211-1/+1
|
* gh-107526: Revert "gh-100357: Convert several functions in bltinsmodule to ↵Nikita Sobolev2023-08-213-303/+101
| | | | AC" (#107542)
* gh-104504: cases generator: Add `--warn-unreachable` to the mypy config ↵Alex Waygood2023-08-204-28/+36
| | | | (#108112)
* Resolve reference warnings in faq/library.rst (#108149)Adam Turner2023-08-202-6/+8
| | | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Resolve reference warnings in faq/design.rst (#108148)Adam Turner2023-08-202-3/+2
|
* Docs: document 'manager' and '_log' attrs of logging.Logging (#108145)Erlend E. Aasland2023-08-201-0/+8
| | | Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Resolve reference warnings in faq/programming.rst (#108150)Adam Turner2023-08-202-4/+3
|
* Docs: Fix Sphinx warnings in logging.rst (GH-108139)Erlend E. Aasland2023-08-202-24/+27
| | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* Docs: Fix Sphinx warnings in license.rst (#108142)Erlend E. Aasland2023-08-202-6/+5
| | | | - Fix links to stdlib modules - Silence links to external functions
* Docs: Fix Sphinx warnings in sys.rst (#108106)Erlend E. Aasland2023-08-203-115/+153
| | | | | | | | | | | | | | | | - 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>
* gh-107659: Improve wording of the description of `ctypes.pointer` and ↵Tomas R2023-08-201-7/+7
| | | | | | `ctypes.POINTER` (#107769) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-107619: Extend functools LRU cache docs with generators and async ↵Hadházy Tamás2023-08-201-2/+3
| | | | | | functions (#107934) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* Fix patchcheck for `asyncio.tasks` (#108159)Kumar Aditya2023-08-201-9/+9
|
* Fix misspellings in sysconfig docs (#108156)Rafael Fontenelle2023-08-201-5/+5
|
* gh-107980: fix doc role for asyncio.timeouts (#108126)Tin Tvrtković2023-08-191-3/+3
|
* Docs: Remove links to external C functions and macros in os.rst (#108138)Erlend E. Aasland2023-08-191-25/+27
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() ↵Serhiy Storchaka2023-08-195-9/+218
| | | | | | | | (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.
* gh-72684: Tkinter: provide interface for "tk busy" subcommands (GH-107684)Serhiy Storchaka2023-08-194-1/+146
| | | | Add tkinter.Misc methods: tk_busy_hold(), tk_busy_configure(), tk_busy_cget(), tk_busy_forget(), tk_busy_current(), and tk_busy_status().
* Docs: format sys.float_info properly (#108107)Erlend E. Aasland2023-08-191-52/+73
| | | | | | | | | | - 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>
* gh-107704: Argument Clinic: add support for deprecating keyword use of ↵Serhiy Storchaka2023-08-199-1344/+2992
| | | | | | | | | | | | 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>
* gh-101100: Only show GitHub check annotations on changed doc paragraphs ↵C.A.M. Gerlach2023-08-192-31/+208
| | | | | | | | | | | | | (#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>
* gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897)Ned Deily2023-08-182-3/+4
|
* gh-107565: Update multissltests and GitHub CI workflows to use OpenSSL ↵Ned Deily2023-08-183-7/+9
| | | | 1.1.1v, 3.0.10, and 3.1.2. (GH-107896)
* gh-107801: Improve the accuracy of os.lseek docs (#107935)Erlend E. Aasland2023-08-183-14/+33
| | | | | | | | - 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>
* Minor code clean-up for the factor() recipe (GH-108114)Raymond Hettinger2023-08-181-3/+1
|
* gh-107995: Fix doctest collection of functools.cached_property objects (#107996)Tyler Smart2023-08-185-0/+22
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104504: Run mypy on cases_generator in CI (and blacken the code) (gh-108090)Dong-hee Na2023-08-1811-195/+314
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and ↵Erlend E. Aasland2023-08-182-31/+77
| | | | | | | | | | | | | | .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>
* gh-108014: Add Py_IsFinalizing() function (#108032)Victor Stinner2023-08-189-9/+24
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Docs: emphasise warning and add accurate markups for sys.unraisablehook ↵Erlend E. Aasland2023-08-181-17/+21
| | | | (#108105)
* gh-107801: Improve the docs of the SEEK_* constants (#108099)Erlend E. Aasland2023-08-171-4/+14
|
* Docs: Fix Sphinx warnings in io.rst (#107903)Erlend E. Aasland2023-08-172-36/+36
| | | | | | - 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>
* gh-107944: Improve error message for function calls with bad keyword ↵Pablo Galindo Salgado2023-08-175-11/+106
| | | | arguments (#107969)
* gh-106581: Project through calls (#108067)Guido van Rossum2023-08-1716-109/+409
| | | | 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.
* gh-104683: Argument Clinic: Remove unreachable code from _module_and_class() ↵Erlend E. Aasland2023-08-171-2/+0
| | | | | | | (#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.
* gh-102029: Deprecate passing arguments to `_PyRLock` in `threading` (#102071)Nikita Sobolev2023-08-174-0/+38
|
* gh-105481: opcode.h is no longer generated during the build (#108080)Irit Katriel2023-08-177-72/+99
|