コード例 #1
0
ファイル: OutputWriter.cs プロジェクト: zzkongfu/ironpython3
 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
 }
コード例 #2
0
ファイル: OutputWriter.cs プロジェクト: rudimk/dlr-dotnet
 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));
     }
 }