Staging
v0.8.1
https://github.com/python/cpython
Revision fb67be2f6b12e6ab07c17ece1caaf0057d610252 authored by Guido van Rossum on 29 August 2007, 18:38:11 UTC, committed by Guido van Rossum on 29 August 2007, 18:38:11 UTC
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.
1 parent e86254e
History
Tip revision: fb67be2f6b12e6ab07c17ece1caaf0057d610252 authored by Guido van Rossum on 29 August 2007, 18:38:11 UTC
Three patches from issue #1047, by Amaury Forgeot d'Arc:
Tip revision: fb67be2
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
PCbuild8
Parser
Python
Tools
.hgtags -rw-r--r-- 2.5 KB
INTBENCH -rw-r--r-- 941 bytes
LICENSE -rw-r--r-- 13.4 KB
Makefile.pre.in -rw-r--r-- 34.5 KB
README -rw-r--r-- 53.1 KB
configure -rwxr-xr-x 629.2 KB
configure.in -rw-r--r-- 94.7 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 26.9 KB
runtests.sh -rwxr-xr-x 2.1 KB
setup.py -rw-r--r-- 67.0 KB

README

back to top