- 28 Ock, 2018 9 kayıt (commit)
-
-
Nitish Chandra yazdı
Better account for single-line compound statements and semi-colon separated statements when suggesting Py3 replacements for Py2 print statements. Initial patch by Nitish Chandra.
-
Xiang Zhang yazdı
Updating the C API docs was missed when the per-opcode tracing & profiling support was initially added.
-
Xiang Zhang yazdı
-
Nick Coghlan yazdı
-
Mario Corchero yazdı
-
Martin Teichmann yazdı
The arguments to a generator function which is declared as a contextmanager are stored inside the context manager, and thus are kept alive, even when it is used as a regular context manager, and not as a function decorator (where it needs the original arguments to recreate the generator on each call). This is a possible unnecessary memory leak, so this changes contextmanager.__enter__ to release the saved arguments, as that method being called means that particular CM instance isn't going to need to recreate the underlying generator. Patch by Martin Teichmann.
-
Eric V. Smith yazdı
Add PEP 557 Data CLasses to What's New.
-
INADA Naoki yazdı
-
Eric V. Smith yazdı
Class authors no longer need to specify repr=False if they want to provide a custom __repr__ for dataclasses. The same thing applies for the other dunder methods that the dataclass decorator adds. If dataclass finds that a dunder methods is defined in the class, it will not overwrite it.
-
- 27 Ock, 2018 19 kayıt (commit)
-
-
Yury Selivanov yazdı
On mac, sendfile throws ENOTCONN on a repeated sendfile call if the connection is closed. Normalize it to behave like other systems.
-
Коренберг Марк yazdı
-
Elvis Pranskevichus yazdı
-
Andrew Svetlov yazdı
-
Ammar Askar yazdı
Travis when merging changes from a pull request onto the target branch does not perform a rebase, instead it does a simple merge which causes the PR commits to retain their commit dates. This means that the commit log can potentially look like: PR merge <-- HEAD normal master commit <- master more commits from normal workflow PR commit 1 another master commit PR commit 2 Performing a git diff from PR commit 2 to master will accidentally include files that should not be there. Closes python/core-workflow#14
-
Yury Selivanov yazdı
-
Andrew Svetlov yazdı
-
Yury Selivanov yazdı
-
Yury Selivanov yazdı
-
INADA Naoki yazdı
-
Pablo Galindo yazdı
-
Xiang Zhang yazdı
Mention in the documentation of settrace and setprofile that errors in the registered handlers will cause themselves unset.
-
Christian Heimes yazdı
bpo-31399: Let OpenSSL verify hostname and IP The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses. * Remove match_hostname calls * Check for libssl with set1_host, libssl must provide X509_VERIFY_PARAM_set1_host() * Add documentation for OpenSSL 1.0.2 requirement * Don't support OpenSSL special mode with a leading dot, e.g. ".example.org" matches "www.example.org". It's not standard conform. * Add hostname_checks_common_name Signed-off-by: Christian Heimes <christian@python.org>
-
Mads Jensen yazdı
-
Christian Heimes yazdı
Add close(fd) function to the socket module Signed-off-by: Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
The hmac module now has hmac.digest(), which provides an optimized HMAC digest for short messages. hmac.digest() is up to three times faster than hmac.HMAC().digest(). Signed-off-by: Christian Heimes <christian@python.org>
-
INADA Naoki yazdı
-
Cheryl Sabella yazdı
Make it clear that setting __class__ on a module has worked since 3.5, but support for __getattr__ and __dir__ on module instances requires 3.7+ Patch by Cheryl Sabella.
-
INADA Naoki yazdı
-
- 26 Ock, 2018 11 kayıt (commit)
-
-
Christian Heimes yazdı
The nismodule is now compatible with new libnsl and headers location Signed-off-by: Christian Heimes <christian@python.org>
-
Yury Selivanov yazdı
Since context.c is compiled with Py_BUILD_CORE, using a macro will result in a slightly more optimal code.
-
Yury Selivanov yazdı
-
Nathaniel J. Smith yazdı
When an unawaited coroutine is collected very late in shutdown -- like, during the final GC at the end of PyImport_Cleanup -- then it was triggering an interpreter abort, because we'd try to look up the "warnings" module and not only was it missing (we were prepared for that), but the entire module system was missing (which we were not prepared for). I've tried to fix this at the source, by making the utility function get_warnings_attr robust against this in general. Note that it already has the convention that it can return NULL without setting an error, which is how it signals that the attribute it was asked to fetch is missing, and that all callers already check for NULL returns. There's a similar check for being late in shutdown at the top of warn_explicit, which might be unnecessary after this fix, but I'm not sure so I'm going to leave it.
-
Guido van Rossum yazdı
* Document `from __future__ import annotations` * Provide plumbing and tests for `from __future__ import annotations` * Implement unparsing the AST back to string form This is required for PEP 563 and as such only implements a part of the unparsing process that covers expressions.
-
bennorth yazdı
dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "..." if so. test_recursive_repr(): Check for the string rather than a RecursionError. (Test cannot be any tighter as contents are implementation-dependent.) test_deeply_nested_repr(): Add new test, replacing the original test_recursive_repr(). It checks that a RecursionError is raised in the case of a non-recursive but deeply nested structure. (Very similar to what test_repr_deep() in test/test_dict.py does for a normal dict.) OrderedDictTests: Add new test case, to test behavior on OrderedDict instances containing their own values() or items().
-
INADA Naoki yazdı
Reported by Coverity Scan.
-
Yury Selivanov yazdı
-
mwidjaja yazdı
-
INADA Naoki yazdı
Global variables should not used as import target. Use temporary variable instead.
-
Bo Bayles yazdı
Patch by Bo Bayles.
-
- 25 Ock, 2018 1 kayıt (commit)
-
-
José Melero Fernández yazdı
-