[PyQt] Prefer __init_subclass__ over pyqtWrapperType

Phil Thompson phil at riverbankcomputing.com
Thu Dec 7 00:02:57 GMT 2017

On 5 Dec 2017, at 11:54 pm, Ilya Kulakov <kulakov.ilya at gmail.com> wrote:
> Hi,
> PEP 487 introduced new means of class customization at creation. It's more convenient as it allows to avoid
> meta class conflicts.
> Would you consider replacing pyqtWrapperType for Python 3.6+? Do you think it's technically possible?
> I understand that it's not backward compatible with code that introspects mro.
> Perhaps this can be configured at compile time or runtime (via env variable or alike)?

The main argument against is the extra work and complexity for little benefit.

I would consider it for PyQt6 when I can drop support for older versions of Python.


More information about the PyQt mailing list