@@ -229,13 +229,10 @@ public PyObject Execute(PyObject script, PyDict? locals = null)
229
229
}
230
230
231
231
/// <summary>
232
- /// Execute method
233
- /// </summary>
234
- /// <remarks>
235
- /// Execute a Python ast and return the result as a PyObject,
232
+ /// Execute a Python ast and return the result as a <see cref="PyObject"/>,
236
233
/// and convert the result to a Managed Object of given type.
237
234
/// The ast can be either an expression or stmts.
238
- /// </remarks >
235
+ /// </summary >
239
236
public T Execute < T > ( PyObject script , PyDict ? locals = null )
240
237
{
241
238
Check ( ) ;
@@ -245,12 +242,8 @@ public T Execute<T>(PyObject script, PyDict? locals = null)
245
242
}
246
243
247
244
/// <summary>
248
- /// Eval method
245
+ /// Evaluate a Python expression and return the result as a <see cref="PyObject"/>.
249
246
/// </summary>
250
- /// <remarks>
251
- /// Evaluate a Python expression and return the result as a PyObject
252
- /// or null if an exception is raised.
253
- /// </remarks>
254
247
public PyObject Eval ( string code , PyDict ? locals = null )
255
248
{
256
249
if ( code is null ) throw new ArgumentNullException ( nameof ( code ) ) ;
@@ -272,7 +265,7 @@ public PyObject Eval(string code, PyDict? locals = null)
272
265
/// Evaluate a Python expression
273
266
/// and convert the result to a Managed Object of given type.
274
267
/// </remarks>
275
- public T Eval < T > ( string code , PyDict ? locals = null )
268
+ public T ? Eval < T > ( string code , PyDict ? locals = null )
276
269
{
277
270
Check ( ) ;
278
271
PyObject pyObj = Eval ( code , locals ) ;
0 commit comments