summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* Update PyObject_Del() documentation (#122597)Victor Stinner2024-08-022-9/+4
| | | Replace PyMem_Del() with PyMem_Free().
* Replace PyObject_Del with PyObject_Free (#122453)Victor Stinner2024-08-011-2/+2
| | | | PyObject_Del() is just a alias to PyObject_Free() kept for backward compatibility. Use directly PyObject_Free() instead.
* gh-122555: Remove removed functions from `Doc/data/refcounts.dat` (#122556)Bénédikt Tran2024-08-011-10/+0
|
* gh-122384: Mark strings from Download page for translation (#122385)Rafael Fontenelle2024-08-011-32/+42
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Fix typos in docs, error messages and comments (#122502)jianghuyiyuan2024-08-013-3/+3
| | | Signed-off-by: jianghuyiyuan <shuangcui@live.com>
* Docs: bump Sphinx to 8.0 and update constraints (#122496)Hugo van Kemenade2024-07-312-8/+8
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-121381 Remove subprocess._USE_VFORK escape hatch (#121383)Cody Maloney2024-07-311-20/+5
| | | | | | | | | | | This flag was added as an escape hatch in gh-91401 and backported to Python 3.10. The flag broke at some point between its addition and now. As there is currently no publicly known environments that require this, remove it rather than work on fixing it. This leaves the flag in the subprocess module to not break code which may have used / checked the flag itself. discussion: https://discuss.python.org/t/subprocess-use-vfork-escape-hatch-broken-fix-or-remove/56915/2
* gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233)Petr Viktorin2024-07-303-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | ## Encode header parts that contain newlines Per RFC 2047: > [...] these encoding schemes allow the > encoding of arbitrary octet values, mail readers that implement this > decoding should also ensure that display of the decoded data on the > recipient's terminal will not cause unwanted side-effects It seems that the "quoted-word" scheme is a valid way to include a newline character in a header value, just like we already allow undecodable bytes or control characters. They do need to be properly quoted when serialized to text, though. ## Verify that email headers are well-formed This should fail for custom fold() implementations that aren't careful about newlines. Co-authored-by: Bas Bloemsaat <bas@bloemsaat.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Remove outdated note about instance methods from datamodel.rst (#122471)Thomas Grainger2024-07-301-8/+1
|
* gh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. ↵Petr Viktorin2024-07-302-2/+11
| | | | | | | (GH-122281) Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. Partially reverts 2211454fe210637ed7fabda12690dac6cc9a8149
* GH-121970: Extract ``audit_events`` into a new extension (#122325)Adam Turner2024-07-303-207/+263
|
* GH-122085: Use include files for C API deprecations (#109843)Adam Turner2024-07-297-181/+121
|
* gh-122085: Create dedicated page for deprecations (#122352)Hugo van Kemenade2024-07-283-0/+13
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-121462: pathlib docs: improve table of corresponding os/os.path functions ↵Barney Gale2024-07-271-36/+51
| | | | | | | | | | | | | | | | | | | (#121465) Re-order table of corresponding functions with the following priorities: 1. Pure functionality is at the top 2. `os.path` functions are shown before `os` functions 3. Similar functionality is kept together 4. Functionality follows docs order where possible Add a few missed correspondences: - `os.path.isjunction` and `Path.is_junction` - `os.path.ismount` and `Path.is_mount` - `os.lstat()` and `Path.lstat()` - `os.lchmod()` and `Path.lchmod()` Also add footnotes describing a few differences.
* gh-122085: Use include files for `whatsnew/3.14.rst` deprecations (#122242)Hugo van Kemenade2024-07-274-13/+32
|
* Fix underline for 'pty' in What's New in Python 3.14 (#122337)Adam Turner2024-07-271-1/+1
|
* Document ``mimetypes.MimeTypes.add_type()`` (#122301)Subrahmanya Gaonkar2024-07-261-0/+10
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Remove reference to docs mailing list for bug reports (#122323)Carol Willing2024-07-261-7/+2
|
* gh-122300: Preserve AST nodes for format specifiers with single elements ↵Pablo Galindo Salgado2024-07-261-1/+3
| | | | (#122308)
* gh-121999: Change default tarfile filter to 'data' (GH-122002)WilliamRoyNelson2024-07-262-32/+55
| | | | | | Co-authored-by: Tomas R <tomas.roun8@gmail.com> Co-authored-by: Scott Odle <scott@sjodle.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-122245: move checks for writes and shadowing of __debug__ to symtable ↵Irit Katriel2024-07-261-0/+5
| | | | (#122246)
* GH-116090: Fix test and clarify behavior for exception events when ↵Mark Shannon2024-07-261-0/+4
| | | | exhausting a generator. (GH-120697)
* GH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164)Mark Shannon2024-07-251-9/+0
|
* gh-122085: Use include files for `whatsnew/3.12.rst` deprecations (#122093)Hugo van Kemenade2024-07-244-146/+77
|
* gh-119180: Add `annotationlib` module to support PEP 649 (#119891)Jelle Zijlstra2024-07-231-2/+6
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-122163: Add notes for JSON serialization errors (GH-122165)Serhiy Storchaka2024-07-231-0/+7
| | | This allows to identify the source of the error.
* Docs: Use cross-reference to `os.uname` in `sysconfig.get_platform` (#122083)Ville Skyttä2024-07-231-1/+1
|
* GH-121970: Remove ``escape4chm`` (#122065)Adam Turner2024-07-233-60/+0
|
* gh-121996: Introduce --disable-safety and --enable-slower-safety options ↵Donghee Na2024-07-231-0/+19
| | | | | | | | | | | | | (#122054) * gh-121996: Introduce --disable-safty and --enable-slower-safty * Update GA * fix * Address code review * Update CI
* gh-121637: Syntax error for optimized-away incorrect await (#121656)Jelle Zijlstra2024-07-221-0/+5
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-119698: deprecate ``symtable.Class.get_methods`` (#121902)Bénédikt Tran2024-07-222-0/+19
|
* gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958)Łukasz Langa2024-07-222-2/+22
| | | | Relatedly, emit the `cpython.run_startup` event from the Python version of `PYTHONSTARTUP` handling.
* Docs: spelling and grammar fixes (#122084)Ville Skyttä2024-07-2222-30/+30
| | | | | | Corrected some grammar and spelling issues in documentation. Co-authored-by: Russell Keith-Magee <russell@keith-magee.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-120522: Apply App Store compliance patch during installation (#121947)Russell Keith-Magee2024-07-214-1/+60
| | | Adds a --with-app-store-compliance configuration option that patches out code known to be an issue with App Store review processes. This option is applied automatically on iOS, and optionally on macOS.
* Delete stale note about mp.Lock.acquire/SIGINT (#120929)Andrey Mishchenko2024-07-211-11/+0
|
* gh-121977: Add tips for handling unhashable data (#122075)Raymond Hettinger2024-07-211-0/+6
|
* GH-73991: Support preserving metadata in `pathlib.Path.copytree()` (#121438)Barney Gale2024-07-201-1/+9
| | | | | Add *preserve_metadata* keyword-only argument to `pathlib.Path.copytree()`, defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like `shutil.copystat()`.
* GH-73991: Add `pathlib.Path.rmtree()` (#119060)Barney Gale2024-07-202-5/+37
| | | | | | | | | | | Add a `Path.rmtree()` method that removes an entire directory tree, like `shutil.rmtree()`. The signature of the optional *on_error* argument matches the `Path.walk()` argument of the same name, but differs from the *onexc* and *onerror* arguments to `shutil.rmtree()`. Consistency within pathlib is probably more important. In the private pathlib ABCs, we add an implementation based on `walk()`. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Docs: Fix duplicate object description warnings (#122068)Adam Turner2024-07-203-1/+7
|
* GH-121970: Modernise the patchlevel extension (#121995)Adam Turner2024-07-203-54/+62
|
* Docs: Fix a typo in What's New in Python 3.13 (#122051)Rafael Fontenelle2024-07-201-1/+1
|
* gh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)Rodrigo Oliveira2024-07-192-6/+18
|
* Docs: move deprecations into include files (#121241)Hugo van Kemenade2024-07-195-309/+312
|
* gh-121160: Note that readline libraries using different history formats. ↵Petr Viktorin2024-07-191-0/+4
| | | | | | (GH-121327) This is not something we can do too much about, without help from the underlying libraries.
* GH-121970: Rewrite the C-API annotations extension (#121985)Adam Turner2024-07-195-1059/+1141
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* GH-121970: Use Ruff to check and format the docs tools (#122018)Adam Turner2024-07-195-50/+147
| | | Co-authored-by: Alex Waygood <Alex.Waygood@gmail.com>
* GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (#121971)Adam Turner2024-07-191-44/+24
|
* GH-121970: Improve the glossary preview in HTML search (#121991)Adam Turner2024-07-193-93/+91
|
* gh-121905: Consistently use "floating-point" instead of "floating point" ↵Serhiy Storchaka2024-07-1950-157/+157
| | | | (GH-121907)
* Docs: Upgrade Sphinx to 7.4 (#121987)Adam Turner2024-07-191-3/+3
|