Skip to content

feat(strutils): add human_readable_list function to format lists of strings#388

Merged
mahmoud merged 4 commits into
mahmoud:masterfrom
gtkacz:322-human_readable_list
Dec 30, 2025
Merged

feat(strutils): add human_readable_list function to format lists of strings#388
mahmoud merged 4 commits into
mahmoud:masterfrom
gtkacz:322-human_readable_list

Conversation

@gtkacz

@gtkacz gtkacz commented Sep 28, 2025

Copy link
Copy Markdown
Contributor

Also formatted the imports according to PEP 8.

Closes #322.

@mahmoud

mahmoud commented Oct 2, 2025

Copy link
Copy Markdown
Owner

Hey there! Love the idea, love that oxford is True by default, but looks like there's a syntax error?

@gtkacz

gtkacz commented Oct 2, 2025

Copy link
Copy Markdown
Contributor Author

My bad, I was using f-strings as first class objects, but that was only introduced in PEP 701 for Python 3.12. Pushing the fix now

@mahmoud mahmoud marked this pull request as draft December 30, 2025 17:57
@mahmoud mahmoud marked this pull request as ready for review December 30, 2025 17:57
@mahmoud mahmoud merged commit ce7c7d2 into mahmoud:master Dec 30, 2025
11 checks passed
bysiber added a commit to bysiber/boltons that referenced this pull request Feb 21, 2026
The human_readable_list function was added in PR mahmoud#388 but was not
included in the module's __all__ list. This means it doesn't show up
in dir(boltons.strutils) or get exported with wildcard imports.
mahmoud pushed a commit that referenced this pull request Mar 6, 2026
The human_readable_list function was added in PR #388 but was not
included in the module's __all__ list. This means it doesn't show up
in dir(boltons.strutils) or get exported with wildcard imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function to format a list with commas and a final 'and'/'or'

2 participants