Can PyQt6 project can add an #ifdef to avoid a conflict? The Py... is supposed to be ours and not for downstream users.
Also, +1 for adding back PySequence_Fast(). I've found it to be pretty useful. Presumably the PyQt maintainers also found it to be so useful that they had to reimplement it.
Activity
vstinner commented on Mar 7, 2025
Fedora downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2345504
pythongh-130947: Add again PySequence_Fast() to the limited C API
rhettinger commented on Mar 7, 2025
Can PyQt6 project can add an #ifdef to avoid a conflict? The Py... is supposed to be ours and not for downstream users.
Also, +1 for adding back PySequence_Fast(). I've found it to be pretty useful. Presumably the PyQt maintainers also found it to be so useful that they had to reimplement it.
vstinner commented on Mar 7, 2025
Which conflict? PyQt6 defines Sequence_Fast_Size() and Sequence_Fast_GetItem() macros: without Py prefix.
pythongh-130947: Add again PySequence_Fast() to the limited C API
gh-130947: Add again PySequence_Fast() to the limited C API (#130948)
vstinner commented on Mar 13, 2025
I added back PySequence_Fast() in the limited C API: 10cbd1f.
pythongh-130947: Add again PySequence_Fast() to the limited C API (py…