Miss Islington (bot)
6e053079ac
bpo-37138: fix undefined behaviour with memcpy() on NULL array (GH-13867)
...
(cherry picked from commit 1f9531764c
)
Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
2019-06-07 11:25:53 -07:00
Miss Islington (bot)
84d47bd8ad
bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)
...
(cherry picked from commit e7e5039d69
)
Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
2019-06-07 11:17:52 -07:00
Petr Viktorin
9689f80e61
bpo-37191: Avoid declaration-after-statement in header included from Python.h (GH-13887)
2019-06-07 18:31:56 +02:00
Miss Islington (bot)
5effd10bf1
bpo-37191: Move TestPEP590 from test_capi to test_call (GH-13892)
...
(cherry picked from commit 740a84de73
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-07 09:13:16 -07:00
Victor Stinner
3576266760
bpo-37169: Rewrite _PyObject_IsFreed() unit tests (GH-13888) (GH-13895)
...
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.
(cherry picked from commit 3bf0f3ad20
)
2019-06-07 17:41:39 +02:00
Zackery Spytz
dd492d9c35
[3.8] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13891)
...
(cherry picked from commit dc2476500d
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-06-07 16:22:58 +02:00
Miss Islington (bot)
295fe32e39
bpo-37177: make IDLE's search dialogs transient (GH-13869)
...
This avoids the search dialogs being hidden behind the editor window.
(cherry picked from commit 554450fb4e
)
Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-06-06 23:17:13 -07:00
Miss Islington (bot)
dba4448c63
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
...
(cherry picked from commit de76c07a8c
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2019-06-06 16:44:50 -07:00
Miss Islington (bot)
1c4084f4c1
bpo-37156: Fix libssl DLL tag in MSI sources (GH-13866)
...
(cherry picked from commit e0c0c7e8c9
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2019-06-06 09:37:59 -07:00
Miss Islington (bot)
406284173a
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
...
(cherry picked from commit 013a18a651
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-06 05:42:53 -07:00
Miss Islington (bot)
23f41a64ea
bpo-37134: Use PEP570 syntax for sum() (GH-13851)
...
(cherry picked from commit c4c421d619
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2019-06-05 16:21:08 -07:00
Miss Islington (bot)
21ce2454de
bpo-37165: Convert _count_elements to the argument clinic (GH-13848)
...
(cherry picked from commit e985804207
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-06-05 16:20:58 -07:00
Miss Islington (bot)
d74438b633
bpo-33725, multiprocessing doc: rephase warning against fork on macOS (GH-13841)
...
Co-Authored-By: Barry Warsaw <barry@python.org>
(cherry picked from commit 1e77ab0a35
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-05 13:07:19 -07:00
Miss Islington (bot)
9ddb77741e
bpo-37158: Simplify and speed-up statistics.fmean() (GH-13832) (GH-13843)
...
(cherry picked from commit 6c01ebcc0d
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-06-05 08:18:13 -07:00
Miss Islington (bot)
b496c26721
bpo-26836: Document os.memfd_create() name parameter (GH-13838) (GH-13839)
...
https://bugs.python.org/issue26836
(cherry picked from commit ccf0efbb21
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-05 13:16:00 +02:00
Miss Islington (bot)
87a865ec15
bpo-34767: Do not always create a collections.deque() in asyncio.Lock() (GH-13834)
...
https://bugs.python.org/issue34767
(cherry picked from commit 9aa78566fb
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-06-05 03:17:42 -07:00
Miss Islington (bot)
f2054d9565
Fix documentation (GH-13721)
...
Based on the source code 4a686504eb/Lib/multiprocessing/pool.pyGH-L755
AsyncResult.successful() raises a ValueError, not an AssertionError.
(cherry picked from commit d4cf099dff
)
Co-authored-by: Benjamin Yeh <bentyeh@users.noreply.github.com>
2019-06-05 02:14:25 -07:00
Miss Islington (bot)
8899b11b95
bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs [streams] (GH-13671)
...
This PR deprecate explicit loop parameters in all public asyncio APIs
This issues is split to be easier to review.
Second step: streams.py
https://bugs.python.org/issue36373
(cherry picked from commit 6d64a8f49e
)
Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
2019-06-04 23:01:01 -07:00
Miss Islington (bot)
39346ff60a
bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)
...
Add it to the end of the first line if there is room. Tests were reworked.
(cherry picked from commit 949fe976d5
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-06-04 19:11:42 -07:00
Miss Islington (bot)
99a5178cd1
Doc: Python 3.9 in sidebar and version switcher. (GH-13824)
...
(cherry picked from commit 59e7bbcaa4
)
Co-authored-by: Julien Palard <julien@palard.fr>
2019-06-04 16:21:19 -07:00
Łukasz Langa
267a3897b9
Post v3.8.0b1
2019-06-04 21:55:17 +02:00
Łukasz Langa
23d7ce7471
Python 3.8.0b1
...
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlz2r2cACgkQsmmV4xAl
BWhasQ/9EDLL+KtFUdi3iMr7+C1UN/2u2v3OnOsZQA0WE7TfEebbf5GS4baN/pHk
PslVY6kRqRfQIxjemXFpq52mn9+3SUE4m3avkgnUZMu8XEaUczM4IdcizGMO3qNr
c1iz6BraJo8gZ1g+dNcRbEc89V9e1SzrBZOR9MXGjxxo0HHEPdjW9ptg1BtHq9To
n4iivdQSnnxzP7D7SpItWPL/gFv90GBbXaTRerGUlmj/uwnBhzHB1fi4r+WDn8yR
4AiFVSlUFpTXYOiH5A3MYQtLq8kH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IOWJFttaRzAB6zq8sEL0kS1BfAEspqTk+ZdnDY1ajppqu
7sb3/TGrxa+38Th5iVvUehHGQqrQYLORVn0w8PKUXunbUbv6AYoDJHKxiOUO4JsX
L5jZEPjTeG0BjntTnvVYdgqPXAVbJr76LmlCPkPcmSruvXrfZP1OOi+ybepwbTpD
8pw88nSTuA==
=zOCJ
-----END PGP SIGNATURE-----
Merge tag 'v3.8.0b1'
Python 3.8.0b1
2019-06-04 21:53:26 +02:00
Petter Strandmark
001d63cefa
bpo-35047: Update whatsnew/3.8 for better mock error message (GH-13746)
2019-06-04 21:34:48 +02:00
Abhilash Raj
aa79707262
bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598)
...
* bpo-30835: email: Fix AttributeError when parsing invalid Content-Transfer-Encoding
Parsing an email containing a multipart Content-Type, along with a
Content-Transfer-Encoding containing an invalid (non-ASCII-decodable) byte
will fail. email.feedparser.FeedParser._parsegen() gets the header and
attempts to convert it to lowercase before comparing it with the accepted
encodings, but as the header contains an invalid byte, it's returned as a
Header object rather than a str.
Cast the Content-Transfer-Encoding header to a str to avoid this.
Found using the AFL fuzzer.
Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Andrew Donnellan <andrew@donnellan.id.au>
* Add email and NEWS entry for the bugfix.
2019-06-04 11:00:47 -07:00
Łukasz Langa
3b5deb0116
Python 3.8.0b1
2019-06-04 19:44:34 +02:00
Abhilash Raj
46d88a1131
bpo-35805: Add parser for Message-ID email header. (GH-13397)
...
* bpo-35805: Add parser for Message-ID header.
This parser is based on the definition of Identification Fields from RFC 5322
Sec 3.6.4.
This should also prevent folding of Message-ID header using RFC 2047 encoded
words and hence fix bpo-35805.
* Prevent folding of non-ascii message-id headers.
* Add fold method to MsgID token to prevent folding.
2019-06-04 10:41:34 -07:00
Victor Stinner
bc6469f79c
bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816)
...
test_venv.test_mutiprocessing() now explicitly calls pool.terminate()
to wait until the pool completes.
2019-06-04 19:03:13 +02:00
Steve Dower
8d0ef0b5ed
bpo-36742: Corrects fix to handle decomposition in usernames ( #13812 )
2019-06-04 17:55:29 +02:00
Boris Feld
800d786370
Fix extraneous whitespace in QueueListener.prepare (GH-13803)
2019-06-04 16:20:17 +01:00
Mario Corchero
f0b5ae4567
bpo-30699: Improve example on datetime tzinfo instances (GH-4290)
...
* Improve example on tzinfo instances
Move from GMTX to TZX when naming the classes, as GMT1 might be rather
confusing as seen in the reported issue.
In addition, move to UTC over GMT and improve the tzname implementation.
* Simplify datetime with tzinfo example
Move the example in the documentation to just use timezone.utc and a
user defined Kabul timezone rather than having two user defined
timezones with DST.
Kabul timezone is still interesting as it changes its offset but not
based on DST. This is more accurate as the previous example was missing
information about the fold attribute. Additionally, implementing the fold
attribute was rather complex and probably not relevant enough for the
section "datetime with tzinfo".
2019-06-04 17:18:10 +02:00
Victor Stinner
ca612a9728
bpo-36778: Remove outdated comment from CodePageTest (GH-13807)
...
CP65001Test has been removed.
2019-06-04 17:09:10 +02:00
Victor Stinner
ea9f168957
bpo-26219: Fix compiler warning in _PyCode_InitOpcache() (GH-13809)
...
Fix this MSVC warning:
objects\codeobject.c(264): warning C4244: '=':
conversion from 'Py_ssize_t' to 'unsigned char', possible loss of data
2019-06-04 17:08:24 +02:00
Andrew Svetlov
8d561092d5
bpo-37142: Make asyncio stream tests more robust again (GH-13804)
...
Make test_stream_server_close() implementation following test_stream_server_abort().
Add explicit timeout for tests that can hang.
2019-06-04 15:44:44 +02:00
Andrew Svetlov
35890abb8d
Make StreamServer.close() tests more robust (GH-13790)
2019-06-04 13:37:10 +02:00
Łukasz Langa
7f9a2ae780
Revert "bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)" ( #13802 )
...
This reverts commit 0f0a30f4da
.
2019-06-04 13:03:20 +02:00
Raymond Hettinger
8f4bbb5d62
Fix grammar (GH-13801)
2019-06-04 03:40:23 -07:00
Ivan Levkivskyi
8bcf2629a2
More updates to the annotated assignments docs (GH-13794)
2019-06-04 11:37:46 +01:00
Pablo Galindo
4cdbc452ce
bpo-37148: Fix asyncio test that check for warning when running the test suite with huntleaks (GH-13800)
2019-06-04 11:26:20 +01:00
Raymond Hettinger
963eb0f473
bpo-35431: Drop the k <= n requirement (GH-13798)
2019-06-04 01:23:06 -07:00
Victor Stinner
0fd2c300c2
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
...
This reverts commit 396e0a8d9d
.
2019-06-04 03:15:09 +02:00
Andrew Svetlov
9535aff942
Revert "bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread ( #13630 )" (GH-13793)
...
https://bugs.python.org/issue35621
2019-06-03 17:09:19 -07:00
Inada Naoki
eddef861b4
bpo-37146: disable opcache when Py_DEBUG is defined (GH-13787)
...
--with-pydebug is commonly used to find memory leaks.
But opcache makes it harder.
So disable opcache when Py_DEBUG is defined.
2019-06-04 00:38:09 +02:00
Victor Stinner
0f0a30f4da
bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)
...
Add BaseEventLoop.wait_executor_on_close attribute: true by default.
loop.close() now waits for the default executor to finish by default.
Set loop.wait_executor_on_close attribute to False to not wait for
the executor.
2019-06-03 23:31:04 +02:00
Christian Heimes
78c7d52779
bpo-37120: Add SSLContext.num_tickets (GH-13719)
...
Signed-off-by: Christian Heimes <christian@python.org>
2019-06-03 21:00:10 +02:00
Christian Heimes
47eb223406
bpo-36868: Fix what's new for SSLContext.hostname_checks_common_name (GH-13248)
...
What's new now mentions SSLContext.hostname_checks_common_name instead of SSLContext.host_flags.
https://bugs.python.org/issue36868
2019-06-03 11:51:27 -07:00
Christian Heimes
e35d1ba9ea
bpo-34271: Fix compatibility with 1.0.2 (GH-13728)
...
Fix various compatibility issues with LibreSSL and OpenSSL 1.0.2
introduced by bpo-34271.
Signed-off-by: Christian Heimes <christian@python.org>
2019-06-03 20:40:15 +02:00
Christian Heimes
06651ee418
bpo-37081: Test with OpenSSL 1.1.1c (GH-13631)
...
Signed-off-by: Christian Heimes <christian@python.org>
2019-06-03 20:10:19 +02:00
Victor Stinner
e225bebc14
Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)" (GH-13780)
...
This reverts commit 6a150bcaeb
.
2019-06-03 18:14:24 +02:00
Victor Stinner
49a7e34797
bpo-37137: Fix test_asyncio: use TestCase.set_event_loop() (GH-13779)
...
Replace asyncio.set_event_loop() with TestCase.set_event_loop() of
test_asyncio.utils: this method calls TestCase.close_loop() which
waits until the executor completes, to avoid leaking dangling
threads.
Inherit from test_asyncio.utils.TestCase rather than
unittest.TestCase.
2019-06-03 17:49:04 +02:00
David Carlier
0b9956e916
bpo-37087: Adding native ID support for OpenBSD (GH-13654)
2019-06-03 17:43:33 +02:00