Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 171cee4

Browse files
Change PyScope to PyModule in docs (#2231)
PyScope data type not found. Py.CreateScope() returns the variable of type PyModule.
1 parent c6f12cf commit 171cee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/dotnet.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Code executed from the scope will have access to the variable:
110110
using (Py.GIL())
111111
{
112112
// create a Python scope
113-
using (PyScope scope = Py.CreateScope())
113+
using (PyModule scope = Py.CreateScope())
114114
{
115115
// convert the Person object to a PyObject
116116
PyObject pyPerson = person.ToPython();

0 commit comments

Comments
 (0)