chiark / gitweb /
documentation/python: further expand the list of ignored dunder names.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 26 Sep 2024 09:17:42 +0000 (11:17 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 28 Sep 2024 01:44:29 +0000 (03:44 +0200)
documentation/python.py

index f560c4ce1c3750023881ccfce728f602b0f27419..dddc932134a0f5d955cb2383d286fa808d7eebd9 100755 (executable)
@@ -351,8 +351,10 @@ if sys.version_info >= (3, 11):
     })
 
 _filtered_builtin_properties = set([
+    # https://github.com/python/cpython/blob/0d9d56c4e4246495f506f7fb319548fb105b535b/Objects/typeobject.c#L3553
     # (if defined) is gone in https://github.com/python/cpython/issues/112266
     # which is backported all the way to 3.11
+    ('__dict__', "dictionary for instance variables" if sys.version_info >= (3, 11) else "dictionary for instance variables (if defined)"),
     ('__weakref__', "list of weak references to the object" if sys.version_info >= (3, 11) else "list of weak references to the object (if defined)")
 ])