Commit 8374d02
committed
[Python] Set
The Python documentation [1] says:
> It is strongly recommended that you use module.__spec__.cached instead
of module.__cached__.
So this commit suggests to transfer the full `__spec__` attribute from
the ROOT module to the facade, instead of `__cached__`.
This also avoids errors when importing ROOT with Python 3.15, where
`__cached__` will cease to be set or taken into consideration by the
import system or standard library.
Closes #21787.
[1] https://docs.python.org/3/reference/datamodel.html#module.__cached____spec__ attribute and not __cached__ for ROOT facade1 parent 66c0195 commit 8374d02
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments