aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysidesignal.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-23 09:02:31 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-27 09:16:44 +0200
commit0c12d05c3331dc6c9d130d130431d4f4054f9942 (patch)
tree5493d2f299e9c3e99311e73967e9366b1a9315ed /sources/pyside6/libpyside/pysidesignal.cpp
parent403df6692726734f1f7ad51eb48576a81a529a72 (diff)
Improve error handling when calling Python overrides of virtual methods
When calling into Python overrides of virtual methods, there is mostly no Python context and so, potential errors, for example caused by misguided duck-punching, appear as error messages without context. To fix this, add an optional context string parameter to storeErrorOrPrint() and a special method for virtuals that formats class and method name. Change-Id: Ibbaf63c163edeb9bf8fcd364c108179c2ac6a069 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/libpyside/pysidesignal.cpp')
0 files changed, 0 insertions, 0 deletions