Skip to content

Commit

Permalink
Change PyScope to PyModule in docs (pythonnet#2231)
Browse files Browse the repository at this point in the history
PyScope data type not found. Py.CreateScope() returns the variable of type PyModule.
  • Loading branch information
OmkarBorhade98 authored Sep 2, 2023
1 parent c6f12cf commit 171cee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/dotnet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Code executed from the scope will have access to the variable:
using (Py.GIL())
{
// create a Python scope
using (PyScope scope = Py.CreateScope())
using (PyModule scope = Py.CreateScope())
{
// convert the Person object to a PyObject
PyObject pyPerson = person.ToPython();
Expand Down

0 comments on commit 171cee4

Please sign in to comment.