Skip to content

Commit c46b10b

Browse files
author
Christopher Rowley
committed
add a comment for later
1 parent 970f3c8 commit c46b10b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/C/extras.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ PyObject_GetBuffer(_o, b, flags) = Base.GC.@preserve _o begin
6363
o = asptr(_o)
6464
getbuf = PyType_GetSlot(Py_Type(o), Py_bf_getbuffer)
6565
if getbuf == C_NULL
66+
# TODO: we can drop this branch and just use PyType_GetName once we stop
67+
# supporting python 3.10
6668
msg = if CTX.is_free_threaded
6769
"a bytes-like object is required"
6870
else

0 commit comments

Comments
 (0)