Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cbdf1ce

Browse filesBrowse files
pilleyestefanseefeld
authored andcommitted
Use Py_REFCNT instead of ->ob_refcnt
Py_REFCNT was stabilized in 3.9, uses this official API instead of the `ob_refcnt` field that doesn't exist in the free-threaded build of 3.13.
1 parent 4fe3403 commit cbdf1ce
Copy full SHA for cbdf1ce

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/converter/from_python.cpp

Copy file name to clipboardExpand all lines: src/converter/from_python.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ namespace
222222
, char const* ref_type)
223223
{
224224
handle<> holder(source);
225-
if (source->ob_refcnt <= 1)
225+
if (Py_REFCNT(source) <= 1)
226226
{
227227
handle<> msg(
228228
#if PY_VERSION_HEX >= 0x3000000

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.