Commit 5828e9b
gh-72798: Add mapping example to str.translate documentation
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 cfeede8 commit 5828e9b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2846 | 2846 | | |
2847 | 2847 | | |
2848 | 2848 | | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
2849 | 2855 | | |
2850 | 2856 | | |
2851 | 2857 | | |
| |||
0 commit comments