]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1472: if_python: PySequence_Fast_{GET_SIZE,GET_ITEM} removed v9.1.1472
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 19 Jun 2025 17:35:32 +0000 (19:35 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 19 Jun 2025 17:35:32 +0000 (19:35 +0200)
commitc50f4d07c4424019a8f1e5a0b20bb1c29605a361
treefabd20a2f9e5280f6f110fee632b75c699ea6db3
parent5fbe72edda708692dba4286860e727e2e0b778cc
patch 9.1.1472: if_python: PySequence_Fast_{GET_SIZE,GET_ITEM} removed

Problem:  if_python: PySequence_Fast_{GET_SIZE,GET_ITEM} removed with
          python3.14 in stable ABI
Solution: use PySequence_{Size,GetItem} instead (Zdenek Dohnal)

Python 3.14 removed those two functions from stable API because of
reasoning these function shouldn't be part of stable API at the first
place.

Moving to PySequence_GetSize and PySequence_GetItem fixes the build
failure when Vim is built with dynamic Python and stable API for Python
3.8.

closes: #17575

Signed-off-by: Zdenek Dohnal <zdohnal@redhat.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/if_py_both.h
src/version.c