aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/codesniphelpers.cpp
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2025-03-22 11:58:48 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-03-24 07:12:05 +0000
commit8ac20831238e9399d51d86847cab400c58ee4d51 (patch)
tree19cd0a5079144458a51dfe2374937849f66ca1fd /sources/shiboken6/ApiExtractor/codesniphelpers.cpp
parent4401a1e5b9bde0d83e1f886d7bdadc6972b1c398 (diff)
feature: Fix regression when PySide is imported with trace set
The feature switching redirects imports in order to support the "from __feature__ import" construct. When no feature is involved, the original function and some post processing is called. When settrace is used before the Shiboken import, we see infinite recursion in Python 3.13. An optimization in updatecache now calls import itself, which then runs the feature machinery recursively. Instead of only calling the original import, temporarily switch the whole import redirection back to the original. Change-Id: Ie3c2e24467ca456b0e731db2696a0b2ab80c6174 Fixes: PYSIDE-3054 Pick-to: 6.9 6.8 6.8.3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/codesniphelpers.cpp')
0 files changed, 0 insertions, 0 deletions