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

2019-10-22 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-09-11 Thread Leslie
Leslie added the comment: Some history and explanation of this problem: - Qt extends C++ with the following keywords: "slots", "signals", "emit" - This extension is compiled with a Meta-Object-Compiler (MOC) into standard C++. - Since code using Qt extensions (i.e. headers) generally used

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

2019-09-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: (You might also argue that Qt should be the ones fixing their namespacing.) -- nosy: +benjamin.peterson ___ Python tracker ___

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

2019-09-09 Thread Steve Dower
Steve Dower 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

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

2019-09-09 Thread STINNER Victor
STINNER Victor added the comment: I don't understand this issue, it mostly contains reference to other bugs. Can someone please try to elaborate the issue? "Regression: name of PyType_Spec::slots conflicts with Qt macro" What is "::slots"? Is it C++ syntax? I don't understand how "slots"

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

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a major breaking change. It may need changing the Python version to 4.0. I suggest you to not use global macros without prefixes and undefine the conflicting one before using the Python C API. -- nosy: +serhiy.storchaka

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

2019-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: My initial thought is similar to that of Michael Hudson in msg23757, that Python should not be hostage to foreign code processors. I also note that the 2010 patch is by Martin Loewis, who was part of the 2006 discussion, and that the 2010 patch was about

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

2019-09-02 Thread Leslie
Change by Leslie : -- keywords: +patch pull_requests: +15309 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15644 ___ Python tracker ___

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

2019-09-02 Thread Leslie
New submission from Leslie : 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