summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-109466: Add ipv6_mapped property to IPv4Address (#109467)Charles Machalow2023-11-052-0/+13
| | | | | Adds the `IPv4Address.ipv6_mapped` property. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111747: DOC: fix moved link to Documentation Translations (#111748)partev2023-11-051-1/+1
| | | | Update old link in bugs.rst to the table of doc translators and translation repositories at Github.
* gh-111719: Add extra check for alias command (#111720)Tian Gao2023-11-041-1/+1
|
* gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725)Nikita Sobolev2023-11-041-0/+4
| | | Close database connection explicitly in test cleanup.
* docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)lefp2023-11-031-0/+1
| | | docs: specify return value on success
* gh-111681: minor fixes to typing doctests; remove unused imports in ↵Nikita Sobolev2023-11-031-4/+4
| | | | | `test_typing` (#111682) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106168: Revert the "size before item" setting (#111683)scoder2023-11-031-2/+0
| | | | gh-106168: Update the size only after setting the item, to avoid temporary inconsistencies. Also remove the "what's new" sentence regarding the size setting since tuples cannot grow after allocation.
* gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵Irit Katriel2023-11-032-2/+4
| | | | frame state (#111648)
* gh-54434: Make difflib.rst doctests pass. (#111677)Terry Jan Reedy2023-11-031-3/+5
|
* Fix typo in documentation of `SysLogHandler.createSocket` (#111665)LoipesMas2023-11-021-3/+1
|
* gh-111625: Fix link to Info-ZIP homepage (#111626)partev2023-11-021-2/+2
|
* gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵Irit Katriel2023-11-022-2/+19
| | | | (#111459)
* gh-106168: Update PyList_SET_ITEM() What's New doc (#111618)Victor Stinner2023-11-011-1/+2
|
* gh-111374: Add a new PYTHON_FROZEN_MODULES env var, equivalent of `-X ↵Yilei Yang2023-11-012-5/+25
| | | | | | | frozen_modules`. (#111411) Adds a new PYTHON_FROZEN_MODULES env var to correspond with -X frozen_modules. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111576: Improve documention for tkinter.messagebox (GH-111578)Serhiy Storchaka2023-11-011-10/+165
|
* gh-111282: Fix NamedTemporaryFile example code (GH-111283)Krzysiek Karbowiak2023-10-311-7/+7
|
* gh-110774: allow setting the Runner(loop_factory=...) from ↵Thomas Grainger2023-10-311-0/+8
| | | | | | | IsolatedAsyncioTestCase (#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-108082: Add PyErr_FormatUnraisable() function (GH-111086)Serhiy Storchaka2023-10-312-0/+17
|
* gh-108765: Python.h no longer includes <stddef.h> on Windows (#111563)Victor Stinner2023-10-311-0/+8
| | | | In practice, only Windows is impacted, because the HAVE_STDDEF_H macro was only defined on Windows.
* gh-102249: Expand sys.call_tracing documentation (#102806)Quentin Peter2023-10-311-3/+17
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-93607: document `root` attribute of `iterparse` (#99410)Prometheus33752023-10-311-1/+3
| | | | | Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106861: Docs: Add availability directives to all Unix-only modules (#108975)xzmeng2023-10-319-6/+14
|
* gh-111301: Move importlib.resources changes to the Removed section (#111509)Karolina Surma2023-10-311-14/+18
|
* gh-111301: Move `importlib.resources.files` change to What's new in Python ↵Karolina Surma2023-10-312-1/+3
| | | | 3.12 (#111512)
* gh-111181: Fix enum doctests (GH-111180)Nikita Sobolev2023-10-301-3/+6
| | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-108082: C API: Add tests for PyErr_WriteUnraisable() (GH-111455)Serhiy Storchaka2023-10-301-0/+8
| | | | Also document the behavior when called with NULL.
* gh-90815: Add mimalloc memory allocator (#109914)Dino Viehland2023-10-305-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add mimalloc v2.12 Modified src/alloc.c to remove include of alloc-override.c and not compile new handler. Did not include the following files: - include/mimalloc-new-delete.h - include/mimalloc-override.h - src/alloc-override-osx.c - src/alloc-override.c - src/static.c - src/region.c mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different. * mimalloc: minimal changes for use in Python: - remove debug spam for freeing large allocations - use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests * Don't export mimalloc symbol in libpython. * Enable mimalloc as Python allocator option. * Add mimalloc MIT license. * Log mimalloc in Lib/test/pythoninfo.py. * Document new mimalloc support. * Use macro defs for exports as done in: https://github.com/python/cpython/pull/31164/ Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-111165: Remove documentation for moved functions (GH-111467)Serhiy Storchaka2023-10-291-10/+0
|
* gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222)Nikita Sobolev2023-10-293-7/+15
| | | | | | | | | | | | | | | * gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` * Update Doc/library/socket.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update asyncio-eventloop.rst * Update socket.rst --------- Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-79033: Try to fix asyncio.Server.wait_closed() again (GH-111336)Guido van Rossum2023-10-281-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Try to fix asyncio.Server.wait_closed() again I identified the condition that `wait_closed()` is intended to wait for: the server is closed *and* there are no more active connections. When this condition first becomes true, `_wakeup()` is called (either from `close()` or from `_detach()`) and it sets `_waiters` to `None`. So we just check for `self._waiters is None`; if it's not `None`, we know we have to wait, and do so. A problem was that the new test introduced in 3.12 explicitly tested that `wait_closed()` returns immediately when the server is *not* closed but there are currently no active connections. This was a mistake (probably a misunderstanding of the intended semantics). I've fixed the test, and added a separate test that checks exactly for this scenario. I also fixed an oddity where in `_wakeup()` the result of the waiter was set to the waiter itself. This result is not used anywhere and I changed this to `None`, to avoid a GC cycle. * Update Lib/asyncio/base_events.py --------- Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-108765: Include explicitly <unistd.h> in signalmodule.c (#111402)Victor Stinner2023-10-271-1/+2
| | | unistd.h is needed by alarm() and pause() functions.
* gh-111406: Fix broken link to bpython's site (#111407)Zack Cerza2023-10-271-1/+1
|
* Fix typos in import system docs (#111396)Jonathan Berthias2023-10-271-3/+3
|
* gh-111388: Add `show_group` parameter to `traceback.format_exception_only` ↵Nikita Sobolev2023-10-271-1/+8
| | | | (#111390)
* gh-111276: Clarify docs and comments about the role of LC_CTYPE (#111319)Łukasz Langa2023-10-271-5/+10
| | | | | | | | Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0: https://docs.python.org/2/library/string.html#deprecated-string-functions Also, fix a comment in logging about locale-specific behavior of `str.lower()`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-89519: Remove classmethod descriptor chaining, deprecated since 3.11 ↵Raymond Hettinger2023-10-273-32/+19
| | | | (gh-110163)
* gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344)Nikita Sobolev2023-10-271-1/+1
|
* Docs: Add `restart_events()` and positional arg semantics for ↵Tian Gao2023-10-251-8/+13
| | | | | `sys.monitoring` (#111291) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-110679: Improved markup in enum.rst (GH-110747)Khalil Mouawad2023-10-251-15/+15
|
* gh-108590: Improve sqlite3 docs on encoding issues and how to handle those ↵Erlend E. Aasland2023-10-251-33/+50
| | | | | | | | | | | | (#108699) Add a guide for how to handle non-UTF-8 text encodings. Link to that guide from the 'text_factory' docs. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Corvin <corvin@corvin.dev> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15 ↵Hugo van Kemenade2023-10-254-7/+20
| | | | (#111188)
* gh-111165: Move test running code from test.support to libregrtest (GH-111166)Serhiy Storchaka2023-10-251-28/+0
| | | | Remove no longer used functions run_unittest() and run_doctest() from the test.support module.
* Fix first parameter name in `tool` functions from `sys.monitoring` (#111286)Pavel Karateev2023-10-241-9/+9
|
* GH-111182: Update EnumType.__contains__ docs (GH-111184)InSync2023-10-241-3/+4
|
* Revert "Fix a code snippet typo in asyncio docs (#108427)" (GH-111271)Zachary Ware2023-10-241-1/+1
| | | | | | | | | This reverts commit 7f316763402a7d5556deecc3acd06cb719e189b3. The change resulted in a tautology and should not have been made. There may be an opportunity for additional clarity in this section, but this change wasn't it :) Ref: https://github.com/python/cpython/pull/108427#issuecomment-1777525740
* gh-111151: Convert monospaced directives to :ref: (#111152)InSync2023-10-243-8/+20
|
* gh-97928: Change the behavior of tkinter.Text.count() (GH-98484)Serhiy Storchaka2023-10-241-1/+9
| | | | | | | It now always returns an integer if one or less counting options are specified. Previously it could return a single count as a 1-tuple, an integer (only if option "update" was specified) or None if no items found. The result is now the same if wantobjects is set to 0.
* Fix typo in sys docs (#111196)James Tocknell2023-10-241-1/+1
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix Sphinx warnings for `fileno` (#111118)Hugo van Kemenade2023-10-238-13/+49
|
* Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET (#110963)Anthony Shaw2023-10-231-0/+2
|