Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-03-09 15:51:17 +0100
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2021-03-31 09:17:13 +0000
commitb550e16f55929bd9f0494b9549791dac6e449397 (patch)
treed883ca6745eb2ef81b31792be4c37bd5c7fef9c3 /examples/scriptableapplication/pythonutils.cpp
parentcb575c49ac63687c9a8b671b36b8b1cefbc01de0 (diff)
feature-import: Hide confusing feature frame entry
The feature construct adds an extra level of indirection to the import command that shows up in tracebacks. This is quite irritating. To avoid these extra layer and much effort fo fix this in Python, it is more straight-forward to write a C function and - calls our redirection and returns if ok or error - calls the original import when feature not applicable. The change to the import function is made transparent by the builtin variables __orig_import__ and __feature_import__. Task-number: PYSIDE-1338 Task-number: PYSIDE-1019 Change-Id: Iacae6fbc47cf85f366f59ec3f6c5cca66d5ad65e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/scriptableapplication/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions