Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb43f382

Browse files
committed
Keep RunString Public
Deprecation/Removal should be a separate issue/pr
1 parentea44eef commitb43f382

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/embed_tests/pyrunstring.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void TestEval()
4040
locals.SetItem("a",newPyInt(10));
4141

4242
objectb=PythonEngine.Eval("sys.attr1 + a + 1",null,locals.Handle)
43-
.AsManagedObject(typeof(Int32));
43+
.AsManagedObject(typeof(int));
4444
Assert.AreEqual(b,111);
4545
}
4646

@@ -54,7 +54,7 @@ public void TestExec()
5454
locals.SetItem("a",newPyInt(10));
5555

5656
PythonEngine.Exec("c = sys.attr1 + a + 1",null,locals.Handle);
57-
objectc=locals.GetItem("c").AsManagedObject(typeof(Int32));
57+
objectc=locals.GetItem("c").AsManagedObject(typeof(int));
5858
Assert.AreEqual(c,111);
5959
}
6060
}

‎src/runtime/pythonengine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public static void Exec(string code, IntPtr? globals = null, IntPtr? locals = nu
432432
/// executing the code string as a PyObject instance, or null if
433433
/// an exception was raised.
434434
/// </remarks>
435-
internalstaticPyObjectRunString(
435+
publicstaticPyObjectRunString(
436436
stringcode,IntPtr?globals=null,IntPtr?locals=null,RunFlagType_flag=RunFlagType.File
437437
)
438438
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp