Skip to content

gh-72798: Add example to str.translate documentation#150085

Closed
Daniil20xx wants to merge 1 commit into
python:mainfrom
Daniil20xx:gh-72798
Closed

gh-72798: Add example to str.translate documentation#150085
Daniil20xx wants to merge 1 commit into
python:mainfrom
Daniil20xx:gh-72798

Conversation

@Daniil20xx
Copy link
Copy Markdown
Contributor

@Daniil20xx Daniil20xx commented May 19, 2026

Adds an example showing how to remove vowels using str.maketrans and str.translate.

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32758831 | 📁 Comparing 28df263 against main (ba0aca3)

  🔍 Preview build  

1 file changed
± library/stdtypes.html

@da-woods
Copy link
Copy Markdown
Contributor

There was already an example added in #144454. I'm not sure if the issue wasn't closed when it should have been

@StanFromIreland
Copy link
Copy Markdown
Member

Thanks @da-woods, I don’t think we need two mapping examples, creating the mapping manually is also more informative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants