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 }
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)); } }