Commit 30e9c5b
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 7e2c9bd commit 30e9c5b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2833 | 2833 | | |
2834 | 2834 | | |
2835 | 2835 | | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
2836 | 2842 | | |
2837 | 2843 | | |
2838 | 2844 | | |
| |||
0 commit comments