• Guido van Rossum's avatar
    Three patches from issue #1047, by Amaury Forgeot d'Arc: · fb67be2f
    Guido van Rossum yazdı
    1/ getargs.diff adds the 'Z' and 'Z#' format specifiers for
    PyArg_ParseTuple. They mimic z and z# for unicode strings, by accepting
    a Unicode or None (in which case the Py_UNICODE* pointer is set to
    NULL). With doc and tests.
    
    2/ subprocess.diff converts file PC/_subprocess.c to unicode. We use the
    Unicode version of the win32 api (and Z conversion from previous patch)
    
    3/ stdout.diff: sys.stdout must not convert the line endings, Windows
    already does it.
    Without this patch, when redirecting the output of python, the file
    contains \r\r\n for each line. (test_subprocess did catch this)
    
    However, I (GvR) removed the change to _fileio.c (included in the
    patches) that prevents closing file descripors < 3 from being closed;
    I think that needs to be solved in a different way.
    fb67be2f
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...
PCbuild8 Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
INTBENCH Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
runtests.sh Loading commit data...
setup.py Loading commit data...