[New-bugs-announce] [issue38007] Regression: name of PyType_Spec::slots conflicts with Qt macro

Leslie report at bugs.python.org
Mon Sep 2 06:23:47 EDT 2019

New submission from Leslie <laszlo.nemeth.pub at gmail.com>:

In Feb 20, 2006, in commit https://github.com/python/cpython/commit/c255c7bef7621596869f56d887ac3ccd5b536708 the bug https://bugs.python.org/issue1086854 had been fixed.

In Dec 3, 2010, in commit https://github.com/python/cpython/commit/4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9 basically the same issue has been introduced again, because it added a "slots" member to the added PyType_Spec struct.

The proposed solution is the same like in the earlier commit, which is explained in https://bugs.python.org/msg23759 :
protect PyType_Spec struct members with prefix:
ts_name, ts_doc, ts_basicsize, ts_itemsize, ts_flags, ts_slots

messages: 350977
nosy: Leslie
priority: normal
severity: normal
status: open
title: Regression: name of PyType_Spec::slots conflicts with Qt macro
type: compile error
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list