Exemplo n.º 1
0
 public override void Write(string value)
 {
     // the context arg is only used to get stdout if it's not passed in
     try {
         PythonOps.PrintWithDestNoNewline(DefaultContext.Default, Sink, value);
     } catch (Exception e) {
         PythonOps.PrintWithDest(DefaultContext.Default, _context.SystemStandardOut, _context.FormatException(e));
     }
     Flush(); // we're using a buffered writer so always flush after write
 }
Exemplo n.º 2
0
 public override void Write(string value)
 {
     // the context arg is only used to get stdout if it's not passed in
     try {
         PythonOps.PrintWithDestNoNewline(DefaultContext.Default, Sink, value);
     } catch (Exception e) {
         PythonOps.PrintWithDest(DefaultContext.Default, _context.SystemStandardOut, _context.FormatException(e));
     }
 }