- 12 Sep, 2019 40 commits
-
-
Greg Price authored
All call sites pass NULL for `recode_encoding`, so this path is completely untested. That's been true since before Python 3.0. It adds significant complexity to this logic, so it's best to take it out. All call sites now have a literal NULL, and that's been true since commit 768921cf eliminated a conditional (`foo ? bar : NULL`) at the call site in Python/ast.c where we're parsing a bytes literal. But even before then, that condition `foo` had been a constant since unadorned string literals started meaning Unicode, in commit 572dbf8f aka v3.0a1~1035 . The `unicode` parameter is already unused, so mark it as unused too. The code that acted on it was also taken out before Python 3.0, in commit 8d30cc01 aka v3.0a1~1031 . The function (PyBytes_DecodeEscape) is exposed in the API, but it's never been documented.
-
Benjamin Peterson authored
-
Steve Dower authored
-
Patrick McLean authored
* subprocess: Add user, group and extra_groups paremeters to subprocess.Popen This adds a `user` parameter to the Popen constructor that will call setreuid() in the child before calling exec(). This allows processes running as root to safely drop privileges before running the subprocess without having to use a preexec_fn. This also adds a `group` parameter that will call setregid() in the child process before calling exec(). Finally an `extra_groups` parameter was added that will call setgroups() to set the supplimental groups.
-
Matti Picus authored
-
Eric Snow authored
-
Daniel Hahler authored
The "--" should not be included with long options passed to getopt.getopt. Fixes https://bugs.python.org/issue37803
-
Hai Shi authored
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
-
Raymond Hettinger authored
-
Sergey Fedoseev authored
-
Dino Viehland authored
Interned string needs to be decref'd https://bugs.python.org/issue38138 Automerge-Triggered-By: @matrixise
-
Christian Heimes authored
The defines are required for OpenSSL 1.0.2 and LibreSSL. https://bugs.python.org/issue38134 Automerge-Triggered-By: @tiran
-
animalize authored
* 1. add test case with wrong behavior * 2. fix bug when max_length == -1 * 3. allow b"" as valid input data for decompress_buf() * 4. when max_length >= 0, let needs_input mechanism works * add more asserts to test case
-
Berker Peksag authored
-
T. Wouters authored
This reverts commit 355f3e1e. bpo-38135
-
Mark Shannon authored
-
Christian Heimes authored
-
Julien Palard authored
-
Christian Heimes authored
Three internal cpython events were not documented, yet. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37363
-
Serhiy Storchaka authored
Test that they do not keep too many file descriptors open for the host OS in a reasonable test scenario. See [bpo-37935](https://bugs.python.org/issue37935).
-
Christian Heimes authored
Signed-off-by: Christian Heimes <christian@python.org>
-
Andrew Svetlov authored
-
Zachary Ware authored
-
Brandt Bucher authored
* Add a note to the PyModule_AddObject docs. * Correct example usages of PyModule_AddObject. * Whitespace. * Clean up wording. *
📜 🤖 Added by blurb_it. * First code review. * Add < 0 in the tests with PyModule_AddObject -
Windson yang authored
-
Christian Heimes authored
Signed-off-by: Christian Heimes <christian@python.org>
-
Emmanuel Arias authored
-
Julien Palard authored
Does no longer work since Sphinx moved the trim_doctest_flag option in the configuration.
-
Christian Heimes authored
Prefer client or TLSv1_2 in examples Signed-off-by: Christian Heimes <christian@python.org>
-
Hai Shi authored
Co-Authored-by: Xuanji Li <xuanji@gmail.com> https://bugs.python.org/issue9938 Automerge-Triggered-By: @matrixise
-
Harmandeep Singh authored
* bpo-13927: time.ctime and time.asctime return string explantion * Add note explaining that time.ctime and time.asctime returns a space padded date value in case it contains a single digit date * Reformat linebreaks
-
Divij Rajkumar authored
Fixes https://bugs.python.org/issue38008
-
Zackery Spytz authored
An exception may occur during a PyObject_IsSubclass() call.
-
bggardner authored
This fixes a regression from 3.5. In recent releases, `getsockname()` in the AF_CAN case has returned a string.
-
Eric Snow authored
-
Georgy Frolov authored
-
Xtreak authored
-
Jason R. Coombs authored
* bpo-38121: Sync importlib.metadata with 0.22 backport *
📜 🤖 Added by blurb_it. -
Zackery Spytz authored
The PyArena type is not part of the limited API, so these headers shouldn't be part of it either.
-
Greg Price authored
Unicode has grown since Python first gained support for it, when Unicode itself was still rather new. This pair of test cases was added in commit 6a20ee7d back in 2000, and they haven't needed to change much since then. But do change them to look beyond the Basic Multilingual Plane (range(0x10000)) and cover all 17 planes of Unicode's final form. This adds about 5 seconds to the test suite's runtime. Mark the tests as CPU-using accordingly.
-