This repository was archived by the owner on Aug 10, 2022. It is now read-only.
This repository was archived by the owner on Aug 10, 2022. It is now read-only.
How might I pass in a http.ResponseWriter object as a *PyObject into PyObject_Call? #26
Open
Description
Describe what happened:
python3.PyTuple_SetItem(tuple, 0, w)
testfunc := pyMod.GetAttrString("serve")
pyret := testfunc.Call(tuple, ret)
running this results in:
cannot use w (type http.ResponseWriter) as type *python3.PyObject in argument to python3.PyTuple_SetItem
Describe what you expected:
I did not expect this to work, but would be interested in getting this to work so that http.ResponseWriter.Write could be called within the Python code. Is this possible?
Steps to reproduce the issue:
Metadata
Metadata
Assignees
Labels
No labels