]>
granicus.if.org Git - python/log
Benjamin Peterson [Thu, 13 Sep 2018 00:14:39 +0000 (17:14 -0700)]
closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)
Carol Willing [Thu, 13 Sep 2018 00:09:08 +0000 (17:09 -0700)]
edit async policy doc - second pass (GH-9235)
Carol Willing [Thu, 13 Sep 2018 00:05:17 +0000 (17:05 -0700)]
bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)
Benjamin Peterson [Wed, 12 Sep 2018 23:21:36 +0000 (16:21 -0700)]
closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)
Benjamin Peterson [Wed, 12 Sep 2018 22:52:40 +0000 (15:52 -0700)]
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)
Tony Flury [Wed, 12 Sep 2018 22:21:16 +0000 (23:21 +0100)]
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
Benjamin Peterson [Wed, 12 Sep 2018 22:12:24 +0000 (15:12 -0700)]
closes bpo-34650: Check if sched_getscheduler returns ENOSYS before declaring it supported. (GH-9228)
musl doesn't support the scheduler API, but declares stubs that alway return ENOSYS.
Alexey Izbyshev [Wed, 12 Sep 2018 21:05:20 +0000 (00:05 +0300)]
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
Reported by Svace static analyzer.
Andrew Svetlov [Wed, 12 Sep 2018 21:03:54 +0000 (14:03 -0700)]
bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)
Benjamin Peterson [Wed, 12 Sep 2018 20:48:03 +0000 (13:48 -0700)]
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX
feature. musl does not provide this feature, so some threadsignal tests fail
when Python is built against it.
There's no good way to test for musl, so we skip if we're on Linux and not using
glibc pthreads.
Also, hedge in the threading documentation about when we can provide interrupts
from lock acquisition.
Oren Milman [Wed, 12 Sep 2018 19:14:35 +0000 (22:14 +0300)]
bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)
Benjamin Peterson [Wed, 12 Sep 2018 19:06:42 +0000 (12:06 -0700)]
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
Ethan Furman [Wed, 12 Sep 2018 18:43:34 +0000 (11:43 -0700)]
bpo-34536: raise error for invalid _missing_ results (GH-9147)
* raise exception if _missing_ returns None or invalid type
Andrew Svetlov [Wed, 12 Sep 2018 18:43:04 +0000 (11:43 -0700)]
bpo-34638: Store a weak reference to stream reader to break strong references loop (GH-9201)
Store a weak reference to stream readerfor breaking strong references
It breaks the strong reference loop between reader and protocol and allows to detect and close the socket if the stream is deleted (garbage collected)
Bumsik Kim [Wed, 12 Sep 2018 18:31:56 +0000 (14:31 -0400)]
bpo-33649: Fix doc to reflect changes in
47cd10d (or bpo-23347) (GH-9219)
Raymond Hettinger [Wed, 12 Sep 2018 17:54:06 +0000 (10:54 -0700)]
bpo-34637: Make the *start* argument for *sum()* visible as a keyword argument. (GH-9208)
orlnub123 [Wed, 12 Sep 2018 17:28:53 +0000 (20:28 +0300)]
bpo-34282: Fix Enum._convert shadowing members named _convert (GH-8568)
* Fix enum members getting shadowed by parent attributes
* Move Enum._convert to EnumMeta._convert_
* Deprecate _convert
Ethan Furman [Wed, 12 Sep 2018 17:00:30 +0000 (10:00 -0700)]
bpo-33437: add __new__ vs __init__ example (GH-9145)
Improve Enum docs.
https://bugs.python.org/issue33437
Benjamin Peterson [Wed, 12 Sep 2018 13:51:18 +0000 (06:51 -0700)]
closes bpo-34640: Remove the TANH_PRESERVES_ZERO_SIGN configure check. (GH-9206)
Sergey Fedoseev [Wed, 12 Sep 2018 12:49:09 +0000 (17:49 +0500)]
Simplified implementation of _sre.ascii_iscased(). (GH-9097)
Cheryl Sabella [Wed, 12 Sep 2018 00:32:15 +0000 (20:32 -0400)]
closes bpo-25041: Document AF_PACKET socket address format. (GH-4092)
Benjamin Peterson [Wed, 12 Sep 2018 00:17:39 +0000 (17:17 -0700)]
Delete old expat comment. (GH-9197)
Yury Selivanov [Wed, 12 Sep 2018 00:10:37 +0000 (17:10 -0700)]
bpo-33649: Cleanup asyncio/streams and asyncio/synchronization docs (GH-9192)
Victor Stinner [Tue, 11 Sep 2018 23:40:06 +0000 (01:40 +0200)]
bpo-34605: Replace "pliant children" with "helpers" (GH-9195)
In distutils.command.install, replace "pliant children" (previously,
it was "pliant slaves") with "helpers".
<!-- issue-number: [bpo-34605](https://www.bugs.python.org/issue34605) -->
https://bugs.python.org/issue34605
<!-- /issue-number -->
Benjamin Peterson [Tue, 11 Sep 2018 23:30:04 +0000 (16:30 -0700)]
Remove configure check LOG1P_DROPS_ZERO_SIGN. (GH-9193)
It is unused.
<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.
# Pull Request title
It should be in the following format:
```
bpo-NNNN: Summary of the changes made
```
Where: bpo-NNNN refers to the issue number in the https://bugs.python.org.
Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.
# Backport Pull Request title
If this is a backport PR (PR made against branches other than `master`),
please ensure that the PR title is in the following format:
```
[X.Y] <title from the original PR> (GH-NNNN)
```
Where: [X.Y] is the branch name, e.g. [3.6].
GH-NNNN refers to the PR number from `master`.
-->
Sergey Fedoseev [Tue, 11 Sep 2018 23:18:01 +0000 (04:18 +0500)]
bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059)
Address a C undefined behavior signed integer overflow issue in set object table resizing. Our -fwrapv compiler flag and practical reasons why sets are unlikely to get this large should mean this was never an issue but it was incorrect code that generates code analysis warnings.
<!-- issue-number: [bpo-1621](https://www.bugs.python.org/issue1621) -->
https://bugs.python.org/issue1621
<!-- /issue-number -->
Max Bélanger [Tue, 11 Sep 2018 23:14:00 +0000 (16:14 -0700)]
closes bpo-31903: Release the GIL when calling into SystemConfiguration (GH-4178)
Sergey Fedoseev [Tue, 11 Sep 2018 22:47:59 +0000 (03:47 +0500)]
bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170)
When handling \s, \d, or \w (and their inverse) escapes in bytes regexes this a small but measurable performance improvement.
<!-- issue-number: [bpo-34636](https://www.bugs.python.org/issue34636) -->
https://bugs.python.org/issue34636
<!-- /issue-number -->
Benjamin Peterson [Tue, 11 Sep 2018 22:29:57 +0000 (15:29 -0700)]
Make sure the line comes from the same node as the col offset. (GH-9189)
Followup to
90fc8980bbcc5c7dcced3627fe172b0bfd193a3b .
<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.
# Pull Request title
It should be in the following format:
```
bpo-NNNN: Summary of the changes made
```
Where: bpo-NNNN refers to the issue number in the https://bugs.python.org.
Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.
# Backport Pull Request title
If this is a backport PR (PR made against branches other than `master`),
please ensure that the PR title is in the following format:
```
[X.Y] <title from the original PR> (GH-NNNN)
```
Where: [X.Y] is the branch name, e.g. [3.6].
GH-NNNN refers to the PR number from `master`.
-->
Victor Stinner [Tue, 11 Sep 2018 22:23:25 +0000 (00:23 +0200)]
Revert "bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)" (GH-9187)
This reverts commit
886483e2b9bbabf60ab769683269b873381dd5ee .
Benjamin Peterson [Tue, 11 Sep 2018 22:11:06 +0000 (15:11 -0700)]
Initialize a variable to make the compiler happy. (GH-9153)
GCC complains:
Python/pylifecycle.c: In function ‘_Py_InitializeFromConfig’:
Python/pylifecycle.c:900:13: warning: ‘interp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
err = _Py_InitializeMainInterpreter(interp, &main_config);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This seems spurious since &interp is passed to _Py_InitializeCore. Anyway, we
can easily initialize to quiet the warning.
Tal Einat [Tue, 11 Sep 2018 21:49:13 +0000 (00:49 +0300)]
bpo-20180: convert most of itertoolsmodule.c to use Argument Clinic (GH-9164)
guoci [Tue, 11 Sep 2018 21:45:45 +0000 (17:45 -0400)]
closes bpo-31902: Fix the col_offset attribute for ast.Async* nodes to point to the "async" keyword. (GH-4175)
Previously, col_offset points to the keyword after "async".
Danish Prakash [Tue, 11 Sep 2018 20:59:23 +0000 (02:29 +0530)]
bpo-34365: Update date object documentation (GH-8814)
Python 3.x does not fall back to comparing object addresses when comparing two `dt` objects.
<!-- issue-number: [bpo-34365](https://www.bugs.python.org/issue34365) -->
https://bugs.python.org/issue34365
<!-- /issue-number -->
Oren Milman [Tue, 11 Sep 2018 18:46:55 +0000 (21:46 +0300)]
closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-3788)
Bram [Tue, 11 Sep 2018 18:45:26 +0000 (20:45 +0200)]
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
The default value of asyncio.StreamReader *limit* is `_DEFAULT_LIMIT` instead of `None`.
<!-- issue-number: [bpo-34613](https://www.bugs.python.org/issue34613) -->
https://bugs.python.org/issue34613
<!-- /issue-number -->
Steve Dower [Tue, 11 Sep 2018 17:47:46 +0000 (10:47 -0700)]
Update VSTS to Azure DevOps and simplify dependencies (GH-9168)
wim glenn [Tue, 11 Sep 2018 17:44:52 +0000 (12:44 -0500)]
bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617) -->
https://bugs.python.org/issue28617
<!-- /issue-number -->
Berker Peksag [Tue, 11 Sep 2018 17:29:48 +0000 (20:29 +0300)]
bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040)
Although the kernel accepts any negative value for timeout, the
documented value to block indefinitely is -1.
This commit also makes the code similar to select.poll.poll().
Andrew Svetlov [Tue, 11 Sep 2018 17:13:04 +0000 (10:13 -0700)]
bpo-34622: Extract asyncio exceptions into a separate module (GH-9141)
Yury Selivanov [Tue, 11 Sep 2018 16:54:40 +0000 (09:54 -0700)]
bpo-33649: First asyncio docs improvement pass (GH-9142)
Rewritten/updated sections:
* Event Loop APIs
* Transports & Protocols
* Streams
* Exceptions
* Policies
* Queues
* Subprocesses
* Platforms
Oren Milman [Tue, 11 Sep 2018 16:51:29 +0000 (19:51 +0300)]
closes bpo-29832: Remove "getsockaddrarg" from error messages. (GH-3163)
Zackery Spytz [Tue, 11 Sep 2018 15:54:07 +0000 (09:54 -0600)]
closes bpo-32490: Fix filename duplication in subprocess exception message. (GH-9163)
8621bb5d93239316f97281826461b85072ff6db7 sets the filename in directly in the FileNotFoundError, so we may revert the earlier fix
5f780400572508a8179de6a6c13b58b7be417ef5 .
Ned Deily [Tue, 11 Sep 2018 15:52:40 +0000 (08:52 -0700)]
bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds (GH-9166)
Andrés Delfino [Tue, 11 Sep 2018 05:12:41 +0000 (02:12 -0300)]
closes bpo-33883: Mention type checkers in the FAQ. (GH-7760)
Zackery Spytz [Tue, 11 Sep 2018 04:37:33 +0000 (22:37 -0600)]
bpo-33032: Mention the implicit cache in struct.Struct() docs (GH-7700)
Mention the implicit cache in struct.Struct() docs.
Consistent with the re.compile documentation note.
Benjamin Peterson [Tue, 11 Sep 2018 04:04:00 +0000 (21:04 -0700)]
bpo-34625: Update vendorized expat version to 2.2.6. (GH-9150)
Raymond Hettinger [Tue, 11 Sep 2018 01:43:08 +0000 (18:43 -0700)]
Fix missing line from example shell session (GH-9143)
Matthias Bussonnier [Tue, 11 Sep 2018 01:15:56 +0000 (03:15 +0200)]
bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785)
Emit warning when None passed explicitly, list Python version since
deprecation in warning message and docs.
Lew Kurtz [Tue, 11 Sep 2018 01:13:08 +0000 (18:13 -0700)]
bpo-33460: remove ellipsis that look like continuation prompts (GH-7851)
Remove ellipsis that look like continuation prompts,
has a side benefit of putting rest of error message in proper text color.
Ville Skyttä [Tue, 11 Sep 2018 01:07:19 +0000 (04:07 +0300)]
Use bytes.hex instead of binascii.hexlify in pbkdf2_hmac example (GH-8420)
Daniel Hahler [Tue, 11 Sep 2018 01:04:33 +0000 (03:04 +0200)]
Lib/test/support: fix typo in docstring (GH-8506)
Anthony Sottile [Tue, 11 Sep 2018 00:54:37 +0000 (20:54 -0400)]
Remove obsolete comment about latin-1 in `normalize_encoding` (GH-8739)
This docstring has drifted since python2: https://github.com/python/cpython/blob/
ca079a3ea30098aff3197c559a0e32d42dda6d84 /Lib/encodings/__init__.py#L68
Gregory P. Smith [Tue, 11 Sep 2018 00:46:22 +0000 (17:46 -0700)]
bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242)
When subprocess.Popen() stdin= stdout= or stderr= handles are specified
and appear in pass_fds=, don't close the original fds after dup'ing them.
This implementation and unittest primarily came from @izbyshev (see the PR)
See also https://github.com/izbyshev/cpython/commit/
b89b52f28490b69142d5c061604b3a3989cec66c
This also removes the old manual p2cread, c2pwrite, and errwrite closing logic
as inheritable flags and _close_open_fds takes care of that properly today without special treatment.
This code is within child_exec() where it is the only thread so there is no
race condition between the dup and _Py_set_inheritable_async_safe call.
Zachary Ware [Mon, 10 Sep 2018 23:16:08 +0000 (16:16 -0700)]
bpo-8110: Refactor platform detection in subprocess (GH-9053)
Check for functionality via imports rather than checking sys.platform
specifically for Windows
NotAFile [Mon, 10 Sep 2018 21:35:38 +0000 (23:35 +0200)]
switch descriptor howto to return value annotation (GH-7796)
Tal Einat [Mon, 10 Sep 2018 18:33:08 +0000 (21:33 +0300)]
bpo-20180: itertools.groupby Argument Clinic conversion (GH-4170)
Rahul Jha [Mon, 10 Sep 2018 18:21:04 +0000 (23:51 +0530)]
bpo-33217: Raise TypeError for non-Enum lookups in Enums (GH-6651)
* bpo-33217: Raise TypeError for non-Enum lookups in Enums
Matthias Bussonnier [Mon, 10 Sep 2018 18:10:01 +0000 (20:10 +0200)]
bpo-33604: Remove deprecated HMAC default value marked for removal in 3.8 (GH-7063)
HMAC's digestmod was deprecated marked for removal, this removes it as planned.
Sebastian Rittau [Mon, 10 Sep 2018 17:29:43 +0000 (19:29 +0200)]
closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)
Berker Peksag [Mon, 10 Sep 2018 17:02:33 +0000 (20:02 +0300)]
bpo-26502: Implement FrameSummary.__len__() (GH-8632)
Peter Eisentraut [Mon, 10 Sep 2018 16:46:08 +0000 (18:46 +0200)]
Fix misleading mentions of tp_size in comments (GH-9093)
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize.
Benjamin Peterson [Mon, 10 Sep 2018 15:43:10 +0000 (08:43 -0700)]
bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)
The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.
The fix is to start the identical frame counter at 1.
Tal Einat [Mon, 10 Sep 2018 13:11:04 +0000 (16:11 +0300)]
bpo-30977: rework code changes according to post-merge code review (GH-9106)
also mention the change and its consequences in What's New
Sergey Fedoseev [Mon, 10 Sep 2018 09:42:09 +0000 (14:42 +0500)]
Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)
Rémy HUBSCHER [Mon, 10 Sep 2018 09:07:15 +0000 (11:07 +0200)]
Revert "Fix misindented yaml in logging how to example (GH-8604)" (GH-9081)
This reverts commit
10b59f1b019cd00c940dd7f4a74c4f667a20f25f .
Zackery Spytz [Mon, 10 Sep 2018 06:27:31 +0000 (00:27 -0600)]
Remove unneeded PyUnicode_READY() in tokenizer.c (GH-9114)
Julien Malard [Sat, 8 Sep 2018 20:31:26 +0000 (02:01 +0530)]
bpo-34421 avoid unicode error in distutils logging (GH-8799)
This caused installation errors in some cases on Windows.
Patch by Julien Malard.
Serhiy Storchaka [Sat, 8 Sep 2018 11:48:18 +0000 (14:48 +0300)]
bpo-20104: Change the file_actions parameter of os.posix_spawn(). (GH-6725)
* Make its default value an empty tuple instead of None.
* Make it a keyword-only parameter.
Pablo Galindo [Fri, 7 Sep 2018 23:16:17 +0000 (00:16 +0100)]
bpo-33083: Update "What's new" with math.factorial changes (GH-9109)
* Add elimination of non-int-like parameters in math.factorial to "What's new".
Pablo Galindo [Fri, 7 Sep 2018 23:15:22 +0000 (00:15 +0100)]
bpo-34246: Make sure test_smtplib always cleans resources when finished (GH-9108)
* Make sure that when some of the tests in test_smtplib fail, the allocated threads
and sockets are not leaked.
* Use support.join_thread() instead of thread.join() to avoid infinite blocks.
Pablo Aguiar [Fri, 7 Sep 2018 22:04:48 +0000 (00:04 +0200)]
bpo-34246: Use no mutable default args in smtplib (GH-8554)
Some methods of the SMTP class use mutable default arguments. Specially
`send_message` is affected as it mutates one of the args by appending items
to it, which has side effects on further calls.
Zackery Spytz [Fri, 7 Sep 2018 22:02:56 +0000 (16:02 -0600)]
bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038)
William Grzybowski [Fri, 7 Sep 2018 17:10:39 +0000 (14:10 -0300)]
bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)
Pass the user/group name as Unicode to the formatting function,
instead of always decoding a bytes string from UTF-8.
Victor Stinner [Fri, 7 Sep 2018 16:13:10 +0000 (18:13 +0200)]
bpo-34605: childs => children (GH-9102)
Victor Stinner [Fri, 7 Sep 2018 16:00:58 +0000 (18:00 +0200)]
bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)
* Add %T format to PyUnicode_FromFormatV(), and so to
PyUnicode_FromFormat() and PyErr_Format(), to format an object type
name: equivalent to "%s" with Py_TYPE(obj)->tp_name.
* Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.
* Add unit test on %T format.
* Rename unicode_fromformat_write_cstr() to
unicode_fromformat_write_utf8(), to make the intent more explicit.
Pablo Galindo [Fri, 7 Sep 2018 15:44:24 +0000 (16:44 +0100)]
bpo-20104: Add flag capabilities to posix_spawn (GH-6693)
Implement the "attributes objects" parameter of `os.posix_spawn` to complete the implementation and fully cover the underlying API.
Victor Stinner [Fri, 7 Sep 2018 15:30:33 +0000 (17:30 +0200)]
bpo-34605: Avoid master/slave terms (GH-9101)
* Replace "master process" with "parent process"
* Replace "master option mappings" with "main option mappings"
* Replace "master pattern object" with "main pattern object"
* ssl: replace "master" with "server"
* And some other similar changes
Victor Stinner [Fri, 7 Sep 2018 15:20:42 +0000 (17:20 +0200)]
bpo-34605, libregrtest: Rename --slaveargs to --worker-args (GH-9099)
Rename also run_tests_slave() to run_tests_worker().
William Grzybowski [Fri, 7 Sep 2018 12:06:15 +0000 (09:06 -0300)]
bpo-33625: Release GIL for grp.getgr{nam,gid} and pwd.getpw{nam,uid} (GH-7081)
Release GIL on grp.getgrnam(), grp.getgrgid(), pwd.getpwnam() and
pwd.getpwuid() if reentrant variants of these functions are available.
Patch by William Grzybowski.
Julien Palard [Fri, 7 Sep 2018 09:31:47 +0000 (11:31 +0200)]
Doc: Missing 'f' in an f-string. (GH-9074)
Sergey Fedoseev [Fri, 7 Sep 2018 08:56:09 +0000 (13:56 +0500)]
_sre.c: Removed unused SRE_IS_ALNUM macro (GH-9090)
jdemeyer [Fri, 7 Sep 2018 07:37:00 +0000 (09:37 +0200)]
bpo-25750: fix refcounts in type_getattro() (GH-6118)
When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".
Sergey Fedoseev [Fri, 7 Sep 2018 04:54:49 +0000 (09:54 +0500)]
closes bpo-34599: Improve performance of _Py_bytes_capitalize(). (GH-9083)
Zackery Spytz [Thu, 6 Sep 2018 18:43:30 +0000 (12:43 -0600)]
closes bpo-34594: Don't hardcode errno values in the tests. (GH-9076)
Tal Einat [Thu, 6 Sep 2018 11:34:25 +0000 (14:34 +0300)]
bpo-30977: make uuid.UUID use __slots__ (GH-9078)
Co-Authored-By: Wouter Bolsterlee.
Erik Janssens [Wed, 5 Sep 2018 06:29:42 +0000 (08:29 +0200)]
closes bpo-34581 : Conditionalize use of __pragma in Modules/socketmodule.c. (GH-9067)
Brendan Gerrity [Tue, 4 Sep 2018 16:35:46 +0000 (09:35 -0700)]
bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037)
Alexander Buchkovsky [Tue, 4 Sep 2018 16:10:28 +0000 (19:10 +0300)]
bpo-34563: Fix for invalid assert on big output of multiprocessing.Process (GH-9027)
Fix for invalid assert on big output of multiprocessing.Process.
Serhiy Storchaka [Tue, 4 Sep 2018 12:04:25 +0000 (15:04 +0300)]
bpo-26544: Add test for platform._comparable_version(). (GH-8973)
Victor Stinner [Tue, 4 Sep 2018 09:01:09 +0000 (11:01 +0200)]
bpo-34530: Fix distutils find_executable() (GH-9049)
distutils.spawn.find_executable() now falls back on os.defpath if the
PATH environment variable is not set.
Pablo Galindo [Tue, 4 Sep 2018 08:53:54 +0000 (09:53 +0100)]
bpo-33613, test_semaphore_tracker_sigint: fix race condition (#7850)
Fail `test_semaphore_tracker_sigint` if no warnings are expected and one is received.
Fix race condition when the child receives SIGINT before it can register signal handlers for it.
The race condition occurs when the parent calls
`_semaphore_tracker.ensure_running()` (which in turn spawns the
semaphore_tracker using `_posixsubprocess.fork_exec`), the child
registers the signal handlers and the parent tries to kill the child.
What seem to happen is that in some slow systems, the parent sends the
signal to kill the child before the child protects against the signal.
Pablo Galindo [Mon, 3 Sep 2018 21:20:06 +0000 (22:20 +0100)]
bpo-33083 - Make math.factorial reject arguments that are not int-like (GH-6149)
math.factorial() was accepting non-integral Decimal instances. This is inconsistent with the actual behaviour for floats, which are not accepted.
Victor Stinner [Mon, 3 Sep 2018 21:17:20 +0000 (23:17 +0200)]
bpo-26901: Fix the Argument Clinic test suite (GH-8879)
* Fix Tools/clinic/clinic_test.py: add missing
FakeClinic.destination_buffers attribute and pass a file argument
to Clinic().
* Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py:
add temporary Tools/clinic/ to sys.path to import the clinic
module.
Co-Authored-By: Pablo Galindo <pablogsal@gmail.com>
Victor Stinner [Mon, 3 Sep 2018 15:32:31 +0000 (17:32 +0200)]
bpo-34544: pymain_read_conf() don't change LC_ALL (GH-9045)
bpo-34485, bpo-34544: Again, pymain_read_conf() leaves LC_ALL locale
unchanged: only modify LC_CTYPE.
Victor Stinner [Mon, 3 Sep 2018 15:06:39 +0000 (17:06 +0200)]
bpo-34567: pythoninfo gets coreconfig (GH-9043)
* Add _testcapi.get_coreconfig() to get the _PyCoreConfig of the
interpreter
* test.pythoninfo now gets the core configuration using
_testcapi.get_coreconfig()
Victor Stinner [Mon, 3 Sep 2018 15:05:18 +0000 (17:05 +0200)]
_Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044)
bpo-34544: If _Py_CoerceLegacyLocale() fails to coerce the C locale,
restore the LC_CTYPE locale to the its previous value.
Victor Stinner [Mon, 3 Sep 2018 12:38:21 +0000 (14:38 +0200)]
bpo-34544: Fix setlocale() in pymain_read_conf() (GH-9041)
bpo-34485, bpo-34544: On some FreeBSD, nl_langinfo(CODESET) fails if
LC_ALL or LC_CTYPE is set to an invalid locale name. Replace
_Py_SetLocaleFromEnv(LC_CTYPE) with _Py_SetLocaleFromEnv(LC_ALL) to
initialize properly locales.
Partially revert commit
177d921c8c03d30daa32994362023f777624b10d .
Raymond Hettinger [Sun, 2 Sep 2018 20:34:21 +0000 (13:34 -0700)]
Minor improvement to code clarity (GH-9036)
Make it clear that the n==0 case is included. Otherwise, you have to know that max==0.0 whenever n==0.
Zachary Ware [Sun, 2 Sep 2018 01:59:27 +0000 (20:59 -0500)]
Fix struct sequence glossary entry grammar (GH-9030)
... by removing a superfluous "either".
Reported by Никита Люшненко on docs@.