Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Nick1200000
Copy link

@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
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
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