]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Three patches from issue #1047, by Amaury Forgeot d'Arc:
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 18:38:11 +0000 (18:38 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 18:38:11 +0000 (18:38 +0000)
commitfb67be2f6b12e6ab07c17ece1caaf0057d610252
tree1cc5f5a63ff45d5dd716a502432ed0db15c5596b
parente86254e2560250ce958330433488ba092ca8ffea
Three patches from issue #1047, by Amaury Forgeot d'Arc:

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.
Doc/c-api/utilities.rst
Lib/site.py
Modules/_testcapimodule.c
PC/_subprocess.c
Python/getargs.c