From: Vladimír Vondruš Date: Wed, 28 Jun 2023 13:14:51 +0000 (+0200) Subject: documentation/python: ignore a new useless builtin on 3.11. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=ef7b8d44fe8d9b8ad25dde9448838a8fabce8766;p=blog.git documentation/python: ignore a new useless builtin on 3.11. --- diff --git a/documentation/python.py b/documentation/python.py index ee9fee2d..00faac68 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -323,6 +323,12 @@ else: ('__sizeof__', "__sizeof__() -> int\nsize of object in memory, in bytes") }) +# Python 3.11 adds another +if sys.version_info >= (3, 11): + _filtered_builtin_functions.update({ + ('__getstate__', "Helper for pickle.") + }) + _filtered_builtin_properties = set([ ('__weakref__', "list of weak references to the object (if defined)") ])