[3.12] Add 'The Python 2.3 Method Resolution Order' (GH-116435) (#117885)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2024-04-15 14:14:16 +03:00 committed by GitHub
parent 50b94b150e
commit a844e83b06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 679 additions and 12 deletions

View file

@ -660,7 +660,7 @@ def cache(user_function, /):
def _c3_merge(sequences):
"""Merges MROs in *sequences* to a single MRO using the C3 algorithm.
Adapted from https://www.python.org/download/releases/2.3/mro/.
Adapted from https://docs.python.org/3/howto/mro.html.
"""
result = []