-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Update random combinatoric recipes and add tests #143762
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
Conversation
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Sorry, @rhettinger, I could not cleanly backport this to |
|
Sorry, @rhettinger, I could not cleanly backport this to |
…es (pythonGH-143764) (cherry picked from commit 2426c45) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
random_combinations_with_replacement()now treats elements as unique based on their position. This matches the behavior ofitertools.combinations_with_replacement().random_productwithitertools.productsusing the parameter*iterablesinstead of*args.📚 Documentation preview 📚: https://cpython-previews--143762.org.readthedocs.build/