chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf2af6
)
docummentation/python: adapt __weakref__ ignore to Python 3.11.
author
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 21 Aug 2024 11:50:08 +0000
(13:50 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 21 Aug 2024 11:54:54 +0000
(13:54 +0200)
documentation/python.py
patch
|
blob
|
history
diff --git
a/documentation/python.py
b/documentation/python.py
index 5933db3a153c2240c4e93febd21a43fb788cd085..0b1927f72f91a1ccd07cb9d3d812536a08c16afd 100755
(executable)
--- 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 = """