- 13 Sep, 2019 15 commits
-
-
Doyle Rowland authored
-
Gregory P. Smith authored
-
Windson yang authored
-
Christian Heimes authored
Signed-off-by: Christian Heimes <christian@python.org>
-
Julien Palard authored
-
Kexuan Sun authored
-
Andrew Svetlov authored
* bpo-38148: Add slots to asyncio transports * Update Misc/NEWS.d/next/Library/2019-09-13-08-55-43.bpo-38148.Lnww6D.rst Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
-
Ashwin Ramaswami authored
bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447) Co-Authored-By: epicfaace <aramaswamis@gmail.com>
-
Xtreak authored
Handle time comparison for cookies with `expires` attribute when `CookieJar.make_cookies` is called. Co-authored-by: Demian Brecht <demianbrecht@gmail.com> https://bugs.python.org/issue12144 Automerge-Triggered-By: @asvetlov
-
Xtreak authored
* This just copies the docs from `StreamWriter` and `StreamReader`. * Add docstring for asyncio functions. https://bugs.python.org/issue36889 Automerge-Triggered-By: @asvetlov
-
Rémi Lapeyre authored
Co-Authored-By: remilapeyre <remi.lapeyre@henki.fr>
-
Dino Viehland authored
- Migrate `Random_Type` to `PyType_FromSpec` - To simulate an old use of `PyLong_Type.tp_as_number->nb_absolute`, I added code to the module init function to stash `int.__abs__` for later use. Ideally we'd use `PyType_GetSlot()` instead, but it doesn't currently work for static types in CPython, and implementing it just for this case doesn't seem worth it. - Do exact check for long and dispatch to PyNumber_Absolute, use vector call when not exact.
-
Jakub Kulík authored
-
Kishore Vancheeshwaran authored
-
Christian Heimes authored
The usedforsecurity keyword only argument added to the hash constructors is useful for FIPS builds and similar restrictive environment with non-technical requirements that legacy algorithms be forbidden by their implementations without being explicitly annotated as not being used for any security related purposes. Linux distros with FIPS support benefit from this being standard rather than making up their own way(s) to do it. Contributed and Signed-off-by: Christian Heimes christian@python.org
-
- 12 Sep, 2019 25 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
-