Skip to content

Commit 6102958

Browse files
author
Christopher Doris
committed
assist debugging PyArg_Find
1 parent b099600 commit 6102958

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cpython/arg.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ end
5454

5555
struct NODEFAULT end
5656

57-
PyArg_Find(args::PyPtr, kwargs::PyPtr, i::Union{Int,Nothing}, k::Union{String,Nothing}) =
57+
PyArg_Find(args::PyPtr, kwargs::PyPtr, i::Union{Int,Nothing}, k::Union{String,Nothing}) = begin
58+
@debug "PyArg_Find" args kwargs i k
5859
if i !== nothing && !isnull(args) && 0 i < PyTuple_Size(args)
5960
return PyTuple_GetItem(args, i)
6061
elseif k !== nothing &&
@@ -64,6 +65,7 @@ PyArg_Find(args::PyPtr, kwargs::PyPtr, i::Union{Int,Nothing}, k::Union{String,No
6465
else
6566
return PyNULL
6667
end
68+
end
6769

6870
"""
6971
PyArg_GetArg(T, funcname, [args, i], [kwargs, k], [default])

0 commit comments

Comments
 (0)