]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130914: Make graphlib.TopologicalSorter.prepare() idempotent (#131317)
authorDaniel Pope <lordmauve@users.noreply.github.com>
Tue, 18 Mar 2025 21:28:00 +0000 (21:28 +0000)
committerGitHub <noreply@github.com>
Tue, 18 Mar 2025 21:28:00 +0000 (16:28 -0500)
commitc1b42db9e47b76fca3c2993cb172cc4991b04839
tree432727f7fc6d03e89a436a1ae0968816979533cf
parentf81990024554a75e2ab31133a72d9f0954690435
gh-130914: Make graphlib.TopologicalSorter.prepare() idempotent (#131317)

Closes #130914: Make graphlib.TopologicalSorter.prepare() idempotent

Relax the rules so that `.prepare()` can be called multiple times, provided that no work has been passed out by `.get_ready()` yet.
Doc/library/graphlib.rst
Doc/whatsnew/3.14.rst
Lib/graphlib.py
Lib/test/test_graphlib.py
Misc/ACKS
Misc/NEWS.d/next/Library/2025-03-16-08-00-29.gh-issue-130914.6z883_.rst [new file with mode: 0644]