chiark / gitweb /
documentation/python: ignore a new useless builtin on 3.11.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 28 Jun 2023 13:14:51 +0000 (15:14 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 28 Jun 2023 14:01:01 +0000 (16:01 +0200)
documentation/python.py

index ee9fee2d8112e6bb6fc5555d574c310300e75698..00faac6819ef923c9641b74a35d93ab03d6cfbe2 100755 (executable)
@@ -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)")
 ])