]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-72798: Add mapping example to str.translate documentation (#144454)
authorkovan <xaum.io@gmail.com>
Tue, 10 Feb 2026 10:13:40 +0000 (11:13 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Feb 2026 10:13:40 +0000 (11:13 +0100)
commit9b8d59c136c8016f88844b716ddbd11bc7defb84
tree2452996e6d88b07270a7bf3b3fcca87c3b83da9c
parent2c1ca6bb5be960529b2f2adac23a8aec46bc031c
gh-72798: Add mapping example to str.translate documentation (#144454)

Add an example showing how to use str.translate() with a dictionary
mapping directly, demonstrating character replacement and deletion.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Doc/library/stdtypes.rst