Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5484451 commit 2e063c2Copy full SHA for 2e063c2
src/runtime/pyscope.cs
@@ -270,28 +270,7 @@ public bool ContainsVariable(string name)
270
return Runtime.PyMapping_HasKey(variables, pyKey.obj) != 0;
271
}
272
273
-
274
- private PyObject _GetVariable(string name)
275
- {
276
- using (var pyKey = new PyString(name))
277
278
- IntPtr op;
279
- if (Runtime.PyMapping_HasKey(variables, pyKey.obj) != 0)
280
281
- op = Runtime.PyObject_GetItem(variables, pyKey.obj);
282
- }
283
- else
284
285
- return null;
286
287
- if (op == IntPtr.Zero)
288
289
- throw new PythonException();
290
291
- return new PyObject(op);
292
293
294
+
295
/// <summary>
296
/// GetVariable Method
297
/// </summary>
0 commit comments