[issue38007] Regression: name of PyType_Spec::slots conflicts with Qt macro

Steve Dower report at bugs.python.org
Mon Sep 9 10:23:46 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

Yes, even as a struct member name (at least in the definition), the C preprocessor will substitute a macro. It sounds like Qt defines a macro "slots", and so the definition of the struct will be broken.

Unfortunately, this would be a more significant change than removing the deprecated tp_print field, which we eventually decided not to do because of the compatibility impact. So I can confidently say we won't be able to do this one either.

----------
nosy: +steve.dower
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38007>
_______________________________________


More information about the Python-bugs-list mailing list