Skip to content

gh-137267: Clarify bytes.isalnum and bytearray.isalnum doc wording#137269

Closed
Nick1200000 wants to merge 1 commit intopython:mainfrom
Nick1200000:fix-issue-137268
Closed

gh-137267: Clarify bytes.isalnum and bytearray.isalnum doc wording#137269
Nick1200000 wants to merge 1 commit intopython:mainfrom
Nick1200000:fix-issue-137268

Conversation

@Nick1200000
Copy link
Copy Markdown

@Nick1200000 Nick1200000 commented Jul 31, 2025

This PR fixes a minor wording issue in the documentation of bytes.isalnum() and bytearray.isalnum() in Doc/library/stdtypes.rst.

Changes:

  • Replaced "alphabetical" with "alphabetic"
  • Changed "or" to "and/or" to more accurately reflect the actual behavior of these methods

These methods return True when all bytes are alphabetic ASCII characters and/or digits, so the updated wording improves clarity and correctness.


📚 Documentation preview 📚: https://cpython-previews--137269.org.readthedocs.build/

@Nick1200000
Copy link
Copy Markdown
Author

Hi @AA-Turner , i just checked the issue section, it's not resolved, can i open my PR once again for the review , Thanks

@AA-Turner
Copy link
Copy Markdown
Member

See #137267 (comment).

A

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.

2 participants