Patch 8.2.5168

6 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 27, 2022, 9:00:32 AM6/27/22
to vim...@googlegroups.com

Patch 8.2.5168
Problem: Cannot build with Python 3.11.
Solution: Adjust define for _PyObject_TypeCheck. (Zdenek Dohnal,
closes #10627)
Files: src/if_python3.c


*** ../vim-8.2.5167/src/if_python3.c 2022-02-07 13:53:56.372933435 +0000
--- src/if_python3.c 2022-06-27 13:55:47.045647572 +0100
***************
*** 692,698 ****
{
return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type);
}
! # define _PyObject_TypeCheck(o,t) py3__PyObject_TypeCheck(o,t)
# endif

# ifdef MSWIN
--- 692,703 ----
{
return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type);
}
! # if PY_VERSION_HEX >= 0x030b00b3
! # undef PyObject_TypeCheck
! # define PyObject_TypeCheck(o,t) py3__PyObject_TypeCheck(o,t)
! # else
! # define _PyObject_TypeCheck(o,t) py3__PyObject_TypeCheck(o,t)
! # endif
# endif

# ifdef MSWIN
*** ../vim-8.2.5167/src/version.c 2022-06-27 11:45:48.969201669 +0100
--- src/version.c 2022-06-27 13:57:08.317958338 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 5168,
/**/

--
Me? A skeptic? I trust you have proof.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages