Skip to content
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

Minor readability improvements for the itertools recipes #127928

Merged
merged 9 commits into from
Dec 13, 2024

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Dec 13, 2024

  • Remove out-of-date intro paragraph.
  • Split code from unique() into two lines
  • Spell-out parameter names in repeatfunc() and iter_except().
  • Use from-imports to lower the code density.
  • Add missing docstring to powerset().

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

@rhettinger rhettinger added docs Documentation in the Doc dir skip issue skip news labels Dec 13, 2024
@rhettinger rhettinger self-assigned this Dec 13, 2024
@rhettinger rhettinger merged commit 292067f into python:main Dec 13, 2024
34 checks passed
@rhettinger rhettinger deleted the recipe_readability branch December 13, 2024 18:12
@rhettinger rhettinger added the needs backport to 3.13 bugs and security fixes label Dec 16, 2024
@miss-islington-app
Copy link

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2024
@bedevere-app
Copy link

bedevere-app bot commented Dec 16, 2024

GH-127999 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Dec 16, 2024
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant