From: Vladimír Vondruš Date: Wed, 21 Aug 2024 11:50:08 +0000 (+0200) Subject: docummentation/python: adapt __weakref__ ignore to Python 3.11. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=0e5161ff17ebf3550bbc0cc99ef81ad7b7d8f80e;p=blog.git docummentation/python: adapt __weakref__ ignore to Python 3.11. --- diff --git a/documentation/python.py b/documentation/python.py index 5933db3a..0b1927f7 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -330,7 +330,9 @@ if sys.version_info >= (3, 11): }) _filtered_builtin_properties = set([ - ('__weakref__', "list of weak references to the object (if defined)") + # (if defined) is gone in https://github.com/python/cpython/issues/112266 + # which is backported all the way to 3.11 + ('__weakref__', "list of weak references to the object" if sys.version_info >= (3, 11) else "list of weak references to the object (if defined)") ]) _automatically_created_by_attrs = """