Skip to content

Commit a483a5e

Browse files
committed
defdelegate py_{none,true,false} in Pythonx.C
Signed-off-by: Cocoa <[email protected]>
1 parent 6398fa5 commit a483a5e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/c.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
defmodule Pythonx.C do
2-
@moduledoc false
2+
@moduledoc """
3+
Python C API.
4+
"""
35

46
@doc """
57
Flag to be used with multiple functions that print the object (like `PyObject.print/1` and `PyFile.write_object`).
@@ -31,4 +33,8 @@ defmodule Pythonx.C do
3133
"""
3234
@spec py_single_input :: integer()
3335
def py_single_input, do: Pythonx.Nif.py_single_input()
36+
37+
defdelegate py_none(), to: Pythonx.C.PyObject
38+
defdelegate py_true(), to: Pythonx.C.PyObject
39+
defdelegate py_false(), to: Pythonx.C.PyObject
3440
end

0 commit comments

Comments
 (0)