- 31 May, 2019 7 commits
-
-
Christian Heimes authored
The ssl module now can dump key material to a keylog file and trace TLS protocol messages with a tracing callback. The default and stdlib contexts also support SSLKEYLOGFILE env var. The msg_callback and related enums are private members. The feature is designed for internal debugging and not for end users. Signed-off-by: Christian Heimes <christian@python.org>
-
Serhiy Storchaka authored
TemporaryDirectory.cleanup() failed when non-writeable or non-searchable files or directories were created inside a temporary directory.
-
Serhiy Storchaka authored
Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.
-
Terry Jan Reedy authored
It seems to be the only widget label not capitalized.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Jeroen Demeyer authored
Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
-
- 30 May, 2019 21 commits
-
-
Ivan Levkivskyi authored
This is an old feature request that appears from time to time. After a year of experimenting with various introspection capabilities in `typing_inspect` on PyPI, I propose to add these two most commonly used functions: `get_origin()` and `get_args()`. These are essentially thin public wrappers around private APIs: `__origin__` and `__args__`. As discussed in the issue and on the typing tracker, exposing some public helpers instead of `__origin__` and `__args__` directly will give us more flexibility if we will decide to update the internal representation, while still maintaining backwards compatibility. The implementation is very simple an is essentially a copy from `typing_inspect` with one exception: `ClassVar` was special-cased in `typing_inspect`, but I think this special-casing doesn't really help and only makes things more complicated.
-
-
Matthias Bussonnier authored
Bump the removal to 3.9, indicate collections.abc available since 3.3, replace version-changed directive to deprecated-removed. https://bugs.python.org/issue36953
-
xdegaye authored
when platform lacks a functioning sem_open implementation https://bugs.python.org/issue36342
-
Antti Haapala authored
-
-
Xtreak authored
As per the PEP and the [audit event raised](https://github.com/python/cpython/blob/13d4e6a4a090031f8214e058ed3c8fd47767e05f/Lib/urllib/request.py#L524) in urllib.request this should be `urllib.Request` cc: @zooba
-
-
Brett Cannon authored
This reverts commit 71dc7c5f. Turns out you must have write access for CODEOWNERS to work.
-
Jeroen Demeyer authored
-
Xtreak authored
Fix DeprecationWarning introduced in aee19f54 https://bugs.python.org/issue37099
-
Zackery Spytz authored
There is no need to clear these immutable objects during shutdown.
-
Jeroen Demeyer authored
-
Jeroen Demeyer authored
-
Xtreak authored
From 3.8 async functions used with mock.patch return an `AsyncMock`. `_accept_connection2` is an async function where create_task is also mocked. Don't mock `create_task` so that tasks are created out of coroutine returned by `AsyncMock` and the tasks are completed. https://bugs.python.org/issue37015
-
Christian Heimes authored
-
Zackery Spytz authored
In e895de3e, the deprecated function PyErr_SetFromWindowsErrWithUnicodeFilename() was added in two functions in Modules/_winapi.c. This function was deprecated in 3.3.
-
Inada Naoki authored
-
Giampaolo Rodola authored
...and avoid using it on Solaris as it can raise EINVAL if offset is equal or bigger than the size of the file
-
Ying Wang authored
-
Anthony Sottile authored
* Don't crash if there exists an EGG-INFO directory on sys.path cross-port of https://gitlab.com/python-devs/importlib_metadata/merge_requests/72 * Also catch PermissionError for windows
-
- 29 May, 2019 12 commits
-
-
Pablo Galindo authored
-
Zackery Spytz authored
bpo-37007: Implement socket.if_nametoindex(), if_indextoname() and if_nameindex() on Windows (GH-13522)
-
Petr Viktorin authored
As it changes the way functions are called, the PEP 590 implementation skipped the functions that the GDB integration is looking for (by name) to find function calls. Looking for the new helper `cfunction_call_varargs` hopefully fixes the tests, and thus buildbots. The changed frame nuber in test_gdb is due to there being fewer C calls when calling a built-in method.
-
-
Antoine Pitrou authored
It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags. This will reduce the risk of running out of bits in the 32-bit tp_flags value.
-
Zackery Spytz authored
* bpo-26836: Add os.memfd_create() * Use the glibc wrapper for memfd_create() Co-Authored-By: Christian Heimes <christian@python.org> * Fix deletions caused by autoreconf. * Use MFD_CLOEXEC as the default value for *flags*. * Add memset_s to configure.ac. * Revert memset_s changes. * Apply the requested changes. * Tweak the docs.
-
Gregory P. Smith authored
* bpo-22385: Support output separators in hex methods. Also in binascii.hexlify aka b2a_hex. The underlying implementation behind all hex generation in CPython uses the same pystrhex.c implementation. This adds support to bytes, bytearray, and memoryview objects. The binascii module functions exist rather than being slated for deprecation because they return bytes rather than requiring an intermediate step through a str object. This change was inspired by MicroPython which supports sep in its binascii implementation (and does not yet support the .hex methods). https://bugs.python.org/issue22385
-
Jeroen Demeyer authored
Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be> Co-authored-by: Mark Shannon <mark@hotpy.org>
-
-
-
Julien Palard authored
-
Christian Heimes authored
-