Guido van Rossum a890e68807 New APIs to write to sys.stdout or sys.stderr using a printf-like interface.
Adapted from code submitted by Just van Rossum.

   PySys_WriteStdout(format, ...)
   PySys_WriteStderr(format, ...)

      The first function writes to sys.stdout; the second to sys.stderr.  When
      there is a problem, they write to the real (C level) stdout or stderr;
      no exceptions are raised (but a pending exception may be cleared when a
      new exception is caught).

      Both take a printf-style format string as their first argument followed
      by a variable length argument list determined by the format string.

      *** WARNING ***

      The format should limit the total size of the formatted output string to
      1000 bytes.  In particular, this means that no unrestricted "%s" formats
      should occur; these should be limited using "%.<N>s where <N> is a
      decimal number calculated so that <N> plus the maximum size of other
      formatted text does not exceed 1000 bytes.  Also watch out for "%f",
      which can print hundreds of digits for very large numbers.
1998-05-12 14:59:24 +00:00
..
1996-10-25 14:44:06 +00:00
1998-04-10 22:27:42 +00:00
1998-04-09 21:39:57 +00:00
1996-10-25 14:44:06 +00:00
1998-04-10 22:27:42 +00:00
1997-07-19 19:48:41 +00:00
1996-10-25 14:44:06 +00:00
1997-09-05 07:33:22 +00:00
1997-07-19 19:48:41 +00:00
1997-07-19 19:48:41 +00:00
1998-04-09 21:39:57 +00:00
1996-08-29 18:10:41 +00:00
1998-04-13 15:27:21 +00:00
1997-09-05 07:33:22 +00:00
1998-04-10 22:27:42 +00:00
1996-08-29 18:10:30 +00:00
1996-08-19 22:12:39 +00:00
1997-11-22 21:53:48 +00:00
1997-11-22 21:53:48 +00:00