8000 gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section by CAM-Gerlach · Pull Request #98585 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section #98585

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

Merged
merged 4 commits into from
Oct 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add random.shuffle random parameter change to Porting section
  • Loading branch information
CAM-Gerlach committed Oct 24, 2022
commit fb9b90bf6aa8ea5c5eb2e1337a53391aa0f19cff
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,10 @@ Porting notes for the C API are
is larger than the population size, a :exc:`ValueError` is raised.
(Contributed by Raymond Hettinger in :issue:`40465`.)

* The *random* optional parameter of :func:`random.shuffle` was removed.
It was previously an arbitrary random function to use for the shuffle;
now, :func:`random.random` (its previous default) will always be used.

* In :mod:`re` :ref:`re-syntax`, global inline flags (e.g. ``(?i)``)
can now only be used at the start of regular expressions.
Using them elsewhere has been deprecated since Python 3.6.
Expand Down
0