| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
This PR basically does the opposite of PR #129398 which is part of Python v3.14.0a5 release. Instead of removing these APIs from the limited C API, this PR fixes the limited C API implementation of PySequence_Fast_GET_SIZE() and PySequence_Fast_GET_ITEM() macros, and it adds again PySequence_Fast() to the limited C API. PySequence_Fast_ITEMS() remains removed, since this function should be implemented in the limited C API. What changed since PR #129398 is that I discovered (via a bug report) that PyQt6 uses PySequence_Fast(). Moreover PyQt6 reimplements PySequence_Fast_GET_SIZE() and PySequence_Fast_GET_ITEM() macros in the limited C API. |
Sorry, something went wrong.
|
This should be considered a new feature and discussed with the C API Workgroup. Also, I do not think that it is right to replace fast macros with slower functions. |
Sorry, something went wrong.
Fast macros are not replaced with slower functions. In the regular C API, this PR changes nothing. It only changes the limited C API implementation to use function calls. |
Sorry, something went wrong.
|
@serhiy-storchaka: Do you still consider that my change is a new feature after my comment? Should I raise the issue to the C API Working Group? |
Sorry, something went wrong.
Add again PySequence_Fast() to the limited C API. Add unit tests.
|
I modified my PR to not add again PySequence_Fast_GET_SIZE() and PySequence_Fast_GET_ITEM() to the limited C API. The PR now only adds PySequence_Fast() back to the limited C API. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 FreeBSD14 3.x (tier-3) has failed when building commit 10cbd1f. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1232/builds/4948 Failed tests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "<frozen getpath>", line 358, in <module>
ValueError: embedded null byte
Warning -- Uncaught thread exception: InterpreterError
Exception in thread Thread-209 (task):
RuntimeError: error evaluating path
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/threading.py", line 1054, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/threading.py", line 996, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/test/test_interpreters/test_stress.py", line 47, in run
interp = interpreters.create()
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/test/support/interpreters/__init__.py", line 76, in create
id = _interpreters.create(reqrefs=True)
interpreters.InterpreterError: interpreter creation failed
k
Traceback (most recent call last):
File "<frozen getpath>", line 358, in <module>
ValueError: embedded null byte
Warning -- Uncaught thread exception: InterpreterError
Exception in thread Thread-280 (run):
RuntimeError: error evaluating path
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/threading.py", line 1054, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/threading.py", line 996, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/test/test_interpreters/test_stress.py", line 30, in task
interp = interpreters.create()
File "/home/buildbot/buildarea/3.x.opsec-fbsd14/build/Lib/test/support/interpreters/__init__.py", line 76, in create
id = _interpreters.create(reqrefs=True)
interpreters.InterpreterError: interpreter creation failed
k
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot iOS ARM64 Simulator 3.x (tier-3) has failed when building commit 10cbd1f. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1380/builds/2860 Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/Users/buildbot/Library/Developer/XCTestDevices/A5AE3DFA-7F2B-46E5-A8FE-D560FAC86C8A/data/Containers/Bundle/Application/0EA2066B-8422-4F05-A6DD-2CCB7D5AF3E6/iOSTestbed.app/python/lib/python3.14/threading.py", line 1054, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/Users/buildbot/Library/Developer/XCTestDevices/A5AE3DFA-7F2B-46E5-A8FE-D560FAC86C8A/data/Containers/Bundle/Application/0EA2066B-8422-4F05-A6DD-2CCB7D5AF3E6/iOSTestbed.app/python/lib/python3.14/threading.py", line 996, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/A5AE3DFA-7F2B-46E5-A8FE-D560FAC86C8A/data/Containers/Bundle/Application/0EA2066B-8422-4F05-A6DD-2CCB7D5AF3E6/iOSTestbed.app/python/lib/python3.14/test/test_interpreters/test_stress.py", line 47, in run
interp = interpreters.create()
File "/Users/buildbot/Library/Developer/XCTestDevices/A5AE3DFA-7F2B-46E5-A8FE-D560FAC86C8A/data/Containers/Bundle/Application/0EA2066B-8422-4F05-A6DD-2CCB7D5AF3E6/iOSTestbed.app/python/lib/python3.14/test/support/interpreters/__init__.py", line 76, in create
id = _interpreters.create(reqrefs=True)
interpreters.InterpreterError: interpreter creation failed
k
|
Sorry, something went wrong.
|
I merged a minimum version of my change: only restore PySequence_Fast() function in the limited C API. |
Sorry, something went wrong.
|
Yes, I consider it as a new feature. And I will be against it. |
Sorry, something went wrong.
…thon#130948) Add again PySequence_Fast() to the limited C API. Add unit tests.
| Back | FazBrowse Home | New Git URL |
Add again PySequence_Fast(), PySequence_Fast_GET_SIZE() and PySequence_Fast_GET_ITEM() to the limited C API
Add an unit tests.
📚 Documentation preview 📚: https://cpython-previews--130948.org.readthedocs.build/