Skip to content

Itertools recipes: Replace the tabulate() example with running_mean()#144483

Merged
rhettinger merged 7 commits intopython:mainfrom
rhettinger:running_mean_recipe
Feb 4, 2026
Merged

Itertools recipes: Replace the tabulate() example with running_mean()#144483
rhettinger merged 7 commits intopython:mainfrom
rhettinger:running_mean_recipe

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Feb 4, 2026

The tabulate example duplicates what is written in module introduction.

It is replaced with running_mean, a more relevant example and one that demonstrates more tooling, such as accumulate and the operator module.


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

@rhettinger rhettinger merged commit b6d8aa4 into python:main Feb 4, 2026
29 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Feb 4, 2026
@rhettinger rhettinger deleted the running_mean_recipe branch February 4, 2026 20:21
@rhettinger rhettinger added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Feb 4, 2026
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

Sorry, @rhettinger, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker b6d8aa436b0108fcc90cb13f9be864cfd4ea2ca7 3.13

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 4, 2026
…pythongh-144483)

(cherry picked from commit b6d8aa4)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 4, 2026

GH-144485 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Feb 4, 2026
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 needs backport to 3.13 bugs and security fixes skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant