• Guido van Rossum's avatar
    New APIs to write to sys.stdout or sys.stderr using a printf-like interface. · a890e688
    Guido van Rossum yazdı
    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.
    a890e688
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...