Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.0, 5.15.7
-
None
Description
After a signal is connected to a function whose _name_ gets overriden for whatever reason, the following hard-to-understand error can happen when the signal is emitted:
TypeError: Can't call meta function because I have no idea how to handle myname
See example code, which sets the function name to "make_handler(myname)". If I remove the closing paren, the error becomes "how to handle myname7f64ac794ee0(". If I remove the opening paren only, no such problem occur.
I see several problems here:
- the error message is non-informative
- the error occuring when the signal is fired, could probably have been detected at connect-time
- legal messing with a standard python attribute causing unexpected interaction: PySide/Shiboken should probably not interpret this.
This problem does not occur with PyQt5.