Commit 9b8d59c
pythongh-72798: Add mapping example to str.translate documentation (python#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>1 parent 2c1ca6b commit 9b8d59c
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
2873 | 2881 | | |
2874 | 2882 | | |
2875 | 2883 | | |
| |||
0 commit comments