[issue23276] hackcheck is broken in association with __setattr__

2020-11-30 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue23276] hackcheck is broken in association with __setattr__

2020-11-08 Thread Irit Katriel
Irit Katriel added the comment: I tried to look up what pyqtWrapperType is and found that it has been removed from QtCore. Is this issue still relevant? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue23276] hackcheck is broken in association with __setattr__

2015-01-20 Thread Alfred Krohmer
Alfred Krohmer added the comment: Can you elaborate what QtClass and QtMeta is in your case? My original example was reduced to a minimal case and seems to work with your suggestions. The complete example involving SQLalchemy is here:

[issue23276] hackcheck is broken in association with __setattr__

2015-01-20 Thread eryksun
eryksun added the comment: def __setattr__(cls, key, value): super(type(QMediaPlaylist), cls).__setattr__(cls, key, value) return The program segfaults when instantiating the Playlist class. I'd expect a TypeError because of the extra cls argument. It's already a bound

[issue23276] hackcheck is broken in association with __setattr__

2015-01-20 Thread Alfred Krohmer
Alfred Krohmer added the comment: I'd expect a TypeError because of the extra cls argument. It's already a bound method. Sorry, that was a typo. Consider making a playlist class that *has* a SQL table, not one that *is* a SQL table, i.e. use composition instead of inheritance. That

[issue23276] hackcheck is broken in association with __setattr__

2015-01-19 Thread eryksun
eryksun added the comment: super(type, cls).__setattr__(key, value) In your case, super(type, cls).__setattr__ references object.__setattr__. super(type, MyClass).__setattr__.__objclass__ class 'object' That's from the method resolution order (__mro__):

[issue23276] hackcheck is broken in association with __setattr__

2015-01-19 Thread Alfred Krohmer
New submission from Alfred Krohmer: The following code: import traceback import sys from PyQt5.QtCore import Qt class MetaA(type): pass class A(metaclass=MetaA): pass class MetaB(type): pass class B(metaclass=MetaB): pass for ClassB in B, Qt: print(Trying class %s %