Joost Lek [Mon, 17 Jun 2019 08:10:17 +0000 (10:10 +0200)]
bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)
Zackery Spytz [Mon, 17 Jun 2019 07:17:14 +0000 (01:17 -0600)]
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051)
On Windows, os.dup() no longer creates an inheritable fd when handling a
character file.
Terry Jan Reedy [Sun, 16 Jun 2019 20:33:56 +0000 (16:33 -0400)]
bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)
The patch needed for 2.7 should make the test more stable on 3.x also.
Hai Shi [Sun, 16 Jun 2019 20:19:19 +0000 (04:19 +0800)]
closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (GH-14120)
Jeroen Demeyer [Sun, 16 Jun 2019 17:03:23 +0000 (19:03 +0200)]
bpo-28805: document METH_FASTCALL (GH-14079)
Mark Dickinson [Sun, 16 Jun 2019 16:53:21 +0000 (17:53 +0100)]
Turn math.isqrt assertion into a comment to clarify its purpose. (GH-14131)
Mark Dickinson [Sun, 16 Jun 2019 10:06:06 +0000 (11:06 +0100)]
Simplify negativity checks in math.comb and math.perm. (GH-13870)
Julien Palard [Sun, 16 Jun 2019 08:25:05 +0000 (10:25 +0200)]
Doc: Remove an ugly space before a dot. (GH-14123)
Rémi Lapeyre [Sun, 16 Jun 2019 06:48:57 +0000 (08:48 +0200)]
bpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay or request rate (GH-11791)
Co-Authored-By: Tal Einat <taleinat+github@gmail.com>
Michael Felt [Sat, 15 Jun 2019 15:52:29 +0000 (17:52 +0200)]
bpo-28009: Fix uuid SkipUnless logic to be based on platform programs capable of introspection (GH-12777)
uuid could try fallback methods that had no chance of working on a particular
platform, and this could cause spurious test failures, as well as degraded
performance as fallback options were tried and failed.
This fixes both the uuid module and its test's SkipUnless logic to use a
prefiltered list of techniques that may at least potentially work on that platform.
Patch by Michael Felt (aixtools).
Pablo Galindo [Sat, 15 Jun 2019 14:58:00 +0000 (15:58 +0100)]
bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099)
Julien Palard [Sat, 15 Jun 2019 14:21:37 +0000 (16:21 +0200)]
Doc: Deprecation header: More precise wording. (GH-14109)
Alex Gaynor [Sat, 15 Jun 2019 14:09:36 +0000 (10:09 -0400)]
Update link in colorsys docs to be https (GH-14062)
Julien Palard [Sat, 15 Jun 2019 13:41:58 +0000 (15:41 +0200)]
Doc: Bump Sphinx verison. (#13785)
To reflect the one we're using in production.
ubordignon [Sat, 15 Jun 2019 11:43:10 +0000 (13:43 +0200)]
Fix typo in Lib/concurrent/futures/thread.py (GH-13953)
Géry Ogam [Sat, 15 Jun 2019 11:33:23 +0000 (13:33 +0200)]
Update weakref.rst (GH-14098)
Andrew Svetlov [Sat, 15 Jun 2019 11:05:35 +0000 (14:05 +0300)]
Use threadpool for reading from file in sendfile fallback mode (#14076)
Andrew Svetlov [Sat, 15 Jun 2019 11:05:08 +0000 (14:05 +0300)]
bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075)
Victor Stinner [Sat, 15 Jun 2019 01:24:41 +0000 (03:24 +0200)]
bpo-36707: Document "m" removal from sys.abiflags (GH-14090)
Steve Dower [Fri, 14 Jun 2019 21:19:25 +0000 (14:19 -0700)]
Fix Windows release build issues (GH-14091)
* Increase timeout for PGO builds in Windows release
* Fix test step failures
* Disable MinGW step properly
* Fix embeddable distro name
Victor Stinner [Fri, 14 Jun 2019 17:43:43 +0000 (19:43 +0200)]
Document C API changes in What's New in Python 3.8 (GH-14092)
Victor Stinner [Fri, 14 Jun 2019 17:31:43 +0000 (19:31 +0200)]
bpo-35537: Rewrite setsid test for os.posix_spawn (GH-11721)
bpo-35537, bpo-35876: Fix also test_start_new_session() of
test_subprocess: use os.getsid() rather than os.getpgid().
Victor Stinner [Fri, 14 Jun 2019 16:55:22 +0000 (18:55 +0200)]
bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)
In a subinterpreter, spawning a daemon thread now raises an
exception. Daemon threads were never supported in subinterpreters.
Previously, the subinterpreter finalization crashed with a Pyton
fatal error if a daemon thread was still running.
* Add _thread._is_main_interpreter()
* threading.Thread.start() now raises RuntimeError if the thread is a
daemon thread and the method is called from a subinterpreter.
* The _thread module now uses Argument Clinic for the new function.
* Use textwrap.dedent() in test_threading.SubinterpThreadingTests
Victor Stinner [Fri, 14 Jun 2019 16:03:22 +0000 (18:03 +0200)]
bpo-37261: Document sys.unraisablehook corner cases (GH-14059)
Document reference cycle and resurrected objects issues in
sys.unraisablehook() and threading.excepthook() documentation.
Fix test.support.catch_unraisable_exception(): __exit__() no longer
ignores unraisable exceptions.
Fix test_io test_writer_close_error_on_close(): use a second
catch_unraisable_exception() to catch the BufferedWriter unraisable
exception.
Zackery Spytz [Fri, 14 Jun 2019 15:53:59 +0000 (09:53 -0600)]
bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows (GH-14081)
Steve Dower [Fri, 14 Jun 2019 15:29:20 +0000 (08:29 -0700)]
Implement Windows release builds in Azure Pipelines (GH-14065)
Andrew Svetlov [Fri, 14 Jun 2019 15:26:24 +0000 (18:26 +0300)]
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() (GH-14080)
Géry Ogam [Fri, 14 Jun 2019 14:39:43 +0000 (16:39 +0200)]
Update concurrent.futures.rst (GH-14061)
This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation:
* the mention that `Future.cancel` also returns `False` if the call finished running;
* the mention of the states for `Future` that did not complete: pending or running.
Victor Stinner [Fri, 14 Jun 2019 11:02:51 +0000 (13:02 +0200)]
bpo-37278: Fix test_asyncio ProactorLoopCtrlC (GH-14074)
Join the thread to prevent leaking a running thread and leaking a
reference.
Cleanup also the test:
* asyncioWindowsProactorEventLoopPolicy became the default policy,
there is no need to set it manually.
* Only start the thread once the loop is running.
* Use a shorter sleep in the thread (100 ms rather than 1 sec).
* Use close_loop(loop) rather than loop.close().
* Use longer variable names.
Jeroen Demeyer [Fri, 14 Jun 2019 10:37:15 +0000 (12:37 +0200)]
bpo-37249: add declaration of _PyObject_GetMethod (GH-14015)
Pablo Galindo [Fri, 14 Jun 2019 05:54:53 +0000 (06:54 +0100)]
bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071)
Fix a regression introduced by
af8646c8054d0f4180a2013383039b6a472f9698 that was causing code of the form:
if True and False:
do_something()
to be optimized incorrectly, eliminating the block.
Michael Felt [Thu, 13 Jun 2019 22:34:46 +0000 (00:34 +0200)]
bpo-37077: Add native thread ID (TID) for AIX (GH-13624)
This is the followup for issue36084
https://bugs.python.org/issue37077
Victor Stinner [Thu, 13 Jun 2019 20:41:23 +0000 (22:41 +0200)]
bpo-36710: Pass explicitly tstate in sysmodule.c (GH-14060)
* Replace global var Py_VerboseFlag with interp->config.verbose.
* Add _PyErr_NoMemory(tstate) function.
* Add tstate parameter to _PyEval_SetCoroutineOriginTrackingDepth()
and move the function to the internal API.
* Replace _PySys_InitMain(runtime, interp)
with _PySys_InitMain(runtime, tstate).
Pablo Galindo [Thu, 13 Jun 2019 18:16:22 +0000 (19:16 +0100)]
bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969)
The peephole optimizer was not optimizing correctly bytecode after negative deltas were introduced. This is due to the fact that some special values (255) were being searched for in both instruction pointer delta and line number deltas.
Makdon [Thu, 13 Jun 2019 13:59:49 +0000 (21:59 +0800)]
bpo-6689: os.path.commonpath raises ValueError for different drives isn't documented (GH-14045)
It would raise ValueError("Paths don't have the same drive") if the paths on different drivers, which is not documented.
os.path.commonpath raises ValueError when the *paths* are in different drivers, but it is not documented.
Update the document according @Windsooon 's suggestion.
It actually raise ValueError according line 355 of [test of path](https://github.com/python/cpython/blob/master/Lib/test/test_ntpath.py)
https://bugs.python.org/issue6689
Victor Stinner [Thu, 13 Jun 2019 12:44:54 +0000 (14:44 +0200)]
bpo-37261: Fix support.catch_unraisable_exception() (GH-14052)
The __exit__() method of test.support.catch_unraisable_exception
context manager now ignores unraisable exception raised when clearing
self.unraisable attribute.
Victor Stinner [Thu, 13 Jun 2019 11:58:51 +0000 (13:58 +0200)]
bpo-37210: Fix pure Python pickle when _pickle is unavailable (GH-14016)
Allow pure Python implementation of pickle to work
even when the C _pickle module is unavailable.
Fix test_pickle when _pickle is missing: declare PyPicklerHookTests
outside "if has_c_implementation:" block.
Victor Stinner [Thu, 13 Jun 2019 10:06:24 +0000 (12:06 +0200)]
tbpo-36402: Fix threading.Thread._stop() (GH-14047)
Remove the _tstate_lock from _shutdown_locks, don't remove None.
Jeroen Demeyer [Thu, 13 Jun 2019 09:26:44 +0000 (11:26 +0200)]
bpo-37231: optimize calls of special methods (GH-13973)
Victor Stinner [Thu, 13 Jun 2019 07:18:45 +0000 (09:18 +0200)]
bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020)
PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional
'feature_version' parameter which is unused.
Jeffrey Kintscher [Thu, 13 Jun 2019 07:01:29 +0000 (00:01 -0700)]
bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)
Makdon [Thu, 13 Jun 2019 05:04:13 +0000 (13:04 +0800)]
bpo-37216: update version to 3.9 in mac using document (GH-13966)
Tim Peters [Thu, 13 Jun 2019 03:41:03 +0000 (22:41 -0500)]
bpo-37257: obmalloc: stop simple arena thrashing (#14039)
GH-14039: allow (no more than) one wholly empty arena on the usable_arenas list.
This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
Ned Deily [Thu, 13 Jun 2019 03:31:45 +0000 (23:31 -0400)]
Add 3.9 whatsnew file (GH-14040)
Victor Stinner [Thu, 13 Jun 2019 00:17:14 +0000 (02:17 +0200)]
bpo-37253: Fix typo in PyCompilerFlags doc (GH-14036)
Remove ";" to fix Sphinx formatting.
Victor Stinner [Thu, 13 Jun 2019 00:16:41 +0000 (02:16 +0200)]
bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018)
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags
variables, rather than initializing cf_flags and cf_feature_version
explicitly in each variable.
Victor Stinner [Thu, 13 Jun 2019 00:01:29 +0000 (02:01 +0200)]
bpo-37253: Document PyCompilerFlags.cf_feature_version (GH-14019)
* Update PyCompilerFlags structure documentation.
* Document the new cf_feature_version field in the Changes in the C
API section of the What's New in Python 3.8 doc.
Victor Stinner [Wed, 12 Jun 2019 23:30:17 +0000 (01:30 +0200)]
bpo-36402: Fix threading._shutdown() race condition (GH-13948)
Fix a race condition at Python shutdown when waiting for threads.
Wait until the Python thread state of all non-daemon threads get
deleted (join all non-daemon threads), rather than just wait until
Python threads complete.
* Add threading._shutdown_locks: set of Thread._tstate_lock locks
of non-daemon threads used by _shutdown() to wait until all Python
thread states get deleted. See Thread._set_tstate_lock().
* Add also threading._shutdown_locks_lock to protect access to
threading._shutdown_locks.
* Add test_finalization_shutdown() test.
Paul Monson [Wed, 12 Jun 2019 23:13:27 +0000 (16:13 -0700)]
bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)
Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[].
This causes time.tzname to be an empty string.
I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production.
In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7
@zooba
https://bugs.python.org/issue36779
Victor Stinner [Wed, 12 Jun 2019 23:09:04 +0000 (01:09 +0200)]
bpo-37069: regrtest uses sys.unraisablehook (GH-13759)
regrtest now uses sys.unraisablehook() to mark a test as "environment
altered" (ENV_CHANGED) if it emits an "unraisable exception".
Moreover, regrtest logs a warning in this case.
Use "python3 -m test --fail-env-changed" to catch unraisable
exceptions in tests.
Victor Stinner [Wed, 12 Jun 2019 21:57:11 +0000 (23:57 +0200)]
bpo-37223, test_io: silence last 'Exception ignored in:' (GH-14029)
Use catch_unraisable_exception() to ignore 'Exception ignored in:'
error when the internal BufferedWriter of the BufferedRWPair is
destroyed. The C implementation doesn't give access to the
internal BufferedWriter, so just ignore the warning instead.
Andrew Svetlov [Wed, 12 Jun 2019 18:50:23 +0000 (21:50 +0300)]
Make asyncio stream sendfile fail on error (was hang) (GH-14025)
Paul Monson [Wed, 12 Jun 2019 18:08:40 +0000 (11:08 -0700)]
bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983)
Paul Monson [Wed, 12 Jun 2019 17:16:49 +0000 (10:16 -0700)]
bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)
David Carlier [Wed, 12 Jun 2019 15:37:56 +0000 (15:37 +0000)]
bpo-37160: Thread native ID NetBSD support (GH-13835)
Michael Felt [Wed, 12 Jun 2019 12:00:56 +0000 (14:00 +0200)]
bpo-35545: Skip `test_asyncio.test_create_connection_ipv6_scope` on AIX (GH-14011)
because "getaddrinfo()" behaves different on AIX
https://bugs.python.org/issue35545
Ammar Askar [Wed, 12 Jun 2019 04:30:35 +0000 (21:30 -0700)]
bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)
* bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts.
Contributed by by Ammar Askar for Google.
Yao Zuo [Wed, 12 Jun 2019 03:46:09 +0000 (20:46 -0700)]
bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)
Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
Victor Stinner [Wed, 12 Jun 2019 02:41:16 +0000 (04:41 +0200)]
bpo-26219: Fix compiler warning in _PyCode_InitOpcache() (GH-13997)
Fix MSVC warning:
objects\codeobject.c(285): warning C4244: '=':
conversion from 'Py_ssize_t' to 'unsigned char',
possible loss of data
Victor Stinner [Wed, 12 Jun 2019 02:07:38 +0000 (04:07 +0200)]
bpo-36918: Fix "Exception ignored in" in test_urllib (GH-13996)
Mock the HTTPConnection.close() method in a few unit tests to avoid
logging "Exception ignored in: ..." messages.
Victor Stinner [Wed, 12 Jun 2019 00:52:16 +0000 (02:52 +0200)]
bpo-35766: compile(): rename feature_version parameter (GH-13994)
Rename compile() feature_version parameter to _feature_version and
convert it to a keyword-only parameter.
Update also test_type_comments to pass feature_version as a tuple.
Guido van Rossum [Wed, 12 Jun 2019 00:23:12 +0000 (17:23 -0700)]
bpo-35766: Change format for feature_version to (major, minor) (GH-13992)
(A single int is still allowed, but undocumented.)
https://bugs.python.org/issue35766
Paul Monson [Tue, 11 Jun 2019 22:03:17 +0000 (15:03 -0700)]
bpo-37238: Enable building for Windows using Visual Studio 2019 (GH-13988)
Guido van Rossum [Tue, 11 Jun 2019 20:42:35 +0000 (13:42 -0700)]
bpo-35766: What's new in the ast and typing modules (#13984)
Benjamin Peterson [Tue, 11 Jun 2019 17:15:31 +0000 (10:15 -0700)]
Fix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)
If preadv2 is not available, preadv will raise NotImplementedError.
Benjamin Peterson [Tue, 11 Jun 2019 16:18:31 +0000 (09:18 -0700)]
closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)
This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here.
Andrew Svetlov [Tue, 11 Jun 2019 15:27:30 +0000 (18:27 +0300)]
bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)
If internal tasks weak set is changed by another thread during iteration.
https://bugs.python.org/issue36607
Raymond Hettinger [Tue, 11 Jun 2019 08:15:24 +0000 (01:15 -0700)]
bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965)
aaronpaulhurst [Tue, 11 Jun 2019 01:54:24 +0000 (18:54 -0700)]
closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpat line in Setup. (GH-13064)
When the line is uncommented, the equals character causes it to be incorrectly interpreted
as a macro definition by makesetup. This results in invalid Makefile output.
The expat code only requires XML_POOR_ENTROPY to be defined; the value is unnecessary.
Victor Stinner [Tue, 11 Jun 2019 01:10:59 +0000 (03:10 +0200)]
bpo-37223: test_io: silence destructor errors (GH-13954)
Implement also MockNonBlockWriterIO.seek() method.
Victor Stinner [Tue, 11 Jun 2019 00:49:06 +0000 (02:49 +0200)]
bpo-18748: Fix _pyio.IOBase destructor (closed case) (GH-13952)
_pyio.IOBase destructor now does nothing if getting the closed
attribute fails to better mimick _io.IOBase finalizer.
Christian Heimes [Mon, 10 Jun 2019 15:19:48 +0000 (17:19 +0200)]
bpo-37215: Fix dtrace issue introduce by bpo-36842 (GH-13940)
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37215
Serhiy Storchaka [Mon, 10 Jun 2019 10:35:52 +0000 (13:35 +0300)]
Do not use explicit inheritance from object in the documentation. (GH-13936)
Antoine Pitrou [Sun, 9 Jun 2019 12:47:15 +0000 (14:47 +0200)]
bpo-36785: PEP 574 What's New entry (#13931)
Nick Coghlan [Sun, 9 Jun 2019 09:07:42 +0000 (19:07 +1000)]
Add some placeholder notes for major 3.8 features (GH-13927)
Marcin Niemira [Sat, 8 Jun 2019 21:05:06 +0000 (07:05 +1000)]
bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)
Raymond Hettinger [Sat, 8 Jun 2019 15:58:11 +0000 (08:58 -0700)]
bpo-37178: Allow a one argument form of math.perm() (GH-13905)
Rémi Lapeyre [Sat, 8 Jun 2019 14:56:24 +0000 (16:56 +0200)]
bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)
Fix an unintended ValueError from :func:`subprocess.run` when checking for
conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args
when they were explicitly provided but with `None` values within a passed in
`**kwargs` dict rather than as passed directly by name.
Ammar Askar [Sat, 8 Jun 2019 14:43:16 +0000 (07:43 -0700)]
bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)
Philipp A [Sat, 8 Jun 2019 12:05:46 +0000 (14:05 +0200)]
bpo-37173: Show passed class in inspect.getfile error (GH-13861)
Currently, inspect.getfile(str) will report nonsense:
```pytb
>>> inspect.getfile(str)
TypeError: <module 'builtins' (built-in)> is a built-in class
```
This fixes that
https://bugs.python.org/issue37173
Anthony Sottile [Fri, 7 Jun 2019 21:23:39 +0000 (14:23 -0700)]
cross port importlib-metadata PR #76 (#13903)
https://gitlab.com/python-devs/importlib_metadata/merge_requests/76
zygocephalus [Fri, 7 Jun 2019 20:08:36 +0000 (23:08 +0300)]
bpo-37150: Throw ValueError if FileType class object was passed in add_argument (GH-13805)
There is a possibility that someone (like me) accidentally will omit parentheses with `FileType` arguments after `FileType`, and parser will contain wrong file until someone will try to use it.
Example:
```python
parser = argparse.ArgumentParser()
parser.add_argument('-x', type=argparse.FileType)
```
https://bugs.python.org/issue37150
Jeroen Demeyer [Fri, 7 Jun 2019 18:01:53 +0000 (20:01 +0200)]
bpo-37138: fix undefined behaviour with memcpy() on NULL array (GH-13867)
Paul Monson [Fri, 7 Jun 2019 17:58:41 +0000 (10:58 -0700)]
bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)
Victor Stinner [Fri, 7 Jun 2019 15:51:28 +0000 (17:51 +0200)]
bpo-37191: Move TestPEP590 from test_capi to test_call (GH-13892)
Victor Stinner [Fri, 7 Jun 2019 14:22:21 +0000 (16:22 +0200)]
bpo-37169: Rewrite _PyObject_IsFreed() unit tests (GH-13888)
Replace two Python function calls with a single one to ensure that no
memory allocation is done between the invalid object is created and
when _PyObject_IsFreed() is called.
Jeroen Demeyer [Fri, 7 Jun 2019 10:20:24 +0000 (12:20 +0200)]
bpo-37151: simplify classmethoddescr_call (GH-13340)
Stefan Krah [Fri, 7 Jun 2019 09:18:34 +0000 (11:18 +0200)]
Use assertEqual(). (#13883)
Cheryl Sabella [Fri, 7 Jun 2019 09:08:20 +0000 (05:08 -0400)]
IDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)
* Change from Dummy_Editwin to DummyEditwin to match other tests.
Eric Wieser [Fri, 7 Jun 2019 08:13:26 +0000 (01:13 -0700)]
bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (#13881)
Tal Einat [Fri, 7 Jun 2019 05:54:40 +0000 (08:54 +0300)]
bpo-37177: make IDLE's search dialogs transient (GH-13869)
This avoids the search dialogs being hidden behind the editor window.
Pablo Galindo [Thu, 6 Jun 2019 23:38:41 +0000 (00:38 +0100)]
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
Zackery Spytz [Thu, 6 Jun 2019 20:39:23 +0000 (14:39 -0600)]
bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860)
websurfer5 [Thu, 6 Jun 2019 19:53:27 +0000 (12:53 -0700)]
bpo-36520: Email header folded incorrectly (#13608)
* bpo-36520: reset the encoded word offset when starting a new
line during an email header folding operation
* 📜🤖 Added by blurb_it.
* bpo-36520: add an additional test case, and provide descriptive
comments for the test_folding_with_utf8_encoding_* tests
* bpo-36520: fix whitespace issue
* bpo-36520: changes per reviewer request -- remove extraneous
backslashes; add whitespace between terminating quotes and
line-continuation backslashes; use "bpo-" instead of
"issue #" in comments
Steve Dower [Thu, 6 Jun 2019 16:06:51 +0000 (09:06 -0700)]
bpo-37156: Fix libssl DLL tag in MSI sources (GH-13866)
Victor Stinner [Thu, 6 Jun 2019 12:25:18 +0000 (14:25 +0200)]
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
Walter Dörwald [Thu, 6 Jun 2019 10:13:08 +0000 (12:13 +0200)]
bpo-2661: Make mapping tests better usable for custom mapping classes. (GH-11157)
In test_fromkeys() the derived test class now supports all arguments in its
constructor so that the class to be tested can use its own constructor in its
fromkeys() implementation.
In test_mutatingiteration() the test fails as soon as iterating over a
dictionary with one entry and adding new entries in the loop iterates more
than once (to avoid endless loops in faulty implementations).
https://bugs.python.org/issue2661
Inada Naoki [Thu, 6 Jun 2019 05:38:52 +0000 (14:38 +0900)]
bpo-35551: remove mac_centeuro encoding (GH-13856)
It is alias to mac_latin2 now.
Barry Warsaw [Thu, 6 Jun 2019 02:40:19 +0000 (19:40 -0700)]
Add importlib.metadata to what's new. (#13855)
Pablo Galindo [Wed, 5 Jun 2019 23:11:46 +0000 (00:11 +0100)]
bpo-37134: Use PEP570 syntax for sum() (GH-13851)