Łukasz Langa
9ab2fb1c68
Bump to 3.9.0a0
2019-06-04 22:12:32 +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
4AiFVSlUFpTXYOiH5A3MYQtLq8kH9AAmo6Bmj/73NvChxv7GV5v968+tlEWEK+/h
UtTUEw8L/oSH74m8wd0q0tQdTe8VJgtwKyR6h5GLL8TLa73nN/jK4Koqirpc8mpK
DcHVLpxHQ/yhPtAcQXp81qqJSbhnPOvbRjNQP5bHcNIl8p+OsF7N9z/tu6gmMorO
k+f2OCOC0ZsG/EL7DPz6kG6+Cy5NhA+/IJ9I3Ayk6AsSjbzqtgai3bKKVF3s27r8
OIZprMAVKsmsPpEfuSG8rshKxmLH5/n7YuwSuMmWXv06QspfG43zxp1VYq94zBoI
wpBy8QxBwef7oDpMI+WgE/g8Prj1NmQuIy7co/pZDsOHeQWr96z90BcpSX8XKHKT
9W829jFKoQEnGnuFgoUxacR8a4bQKVla5mVFvjUtGjb9GS9kJkk=
=V2hy
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlz2zD8QHGx1a2FzekBs
YW5nYS5wbAAKCRCyaZXjECUFaIw/EACXkzdCOq5D/itTvFElnNWjlon8ot4toVEf
zw4isSYiYS4B3dBI6+VyCZWNxR5F6fwfyhPLHf7CzPn+7Yp5+dX9//x0HqhNLQCY
PmwuYG/4nWcww8UhUweGVI1u8Fjrw+LzLJPVyhLQia/TXUBfCFcggS2xo9S6mSsA
isJr9RaCDaoit6ZjFIuo+sOn2YTx2eYBe6LlhlSx9zz0ayyy+ADqPeUq/hoEFDPD
EXUOwsLJPo/vu7sFqKOhHBWtMCcnvkkbiBLrAmHS2vhKjl22zVez0lUiVxLUlhZT
WcmfRkCtoBKu2rYbm85pt08fgF/CnHq9oO57yDBZ4j/Lv0HqQkp+/yZRzWqSSThw
vw4z4Ur3l06ZMxsTH+Dd/xjqc41AlpedJNhuAgOf0URrbl4H48y5U6AG1vZWrpAk
wUsTF1QGXL1SAam2pjI2cTpjRaCh3RK2wf0KPewxUpcvcRcGtGAbq+EFHHOFg2Lm
AcxAuAEUXKcyJQnLtFiIOWJFttaRzAB6zq8sEL0kS1BfAEspqTk+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
Julien Palard
141da44bb4
Doc fix: duplicate object description of email.message (GH-13742)
2019-06-03 17:17:03 +02:00
Victor Stinner
01ae897efd
Add credits to What's New in Python 3.8 (GH-13776)
...
* Credit myself and others.
* Complete asyncio changes.
2019-06-03 16:28:01 +02:00
Inada Naoki
395420e2a3
bpo-26219: remove unused code (GH-13775)
...
This code was for deoptimization, which is removed from
PR-12884.
2019-06-03 22:34:15 +09:00
Inada Naoki
91234a1636
bpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)
...
This patch implements per opcode cache mechanism, and use it in
only LOAD_GLOBAL opcode.
Based on Yury's opcache3.patch in bpo-26219.
2019-06-03 21:30:58 +09:00
Ned Deily
29ec422810
Pin macOS installer Sphinx to v2.0.1 (GH-13774)
2019-06-03 08:00:25 -04:00
Ned Deily
0288dd6a51
bpo-36231: Support building on macOS without /usr/include (GH-13773)
2019-06-03 06:34:48 -04:00
Pablo Galindo
8565f6b6db
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
2019-06-03 08:34:20 +01:00
Xtreak
d9677f36fe
IDLE: Fix typos in docs and comments (GH-13749)
2019-06-03 00:21:15 -04:00
Raymond Hettinger
cba9f84725
bpo-36546: Add design notes to aid future discussions (GH-13769)
2019-06-02 21:07:43 -07:00
cclauss
d337169156
Fix variable name copy/paste error in build-installer.py (GH-13038)
2019-06-02 23:19:44 -04:00
Augusto Hack
01ee12ba35
bpo-33569 Preserve type information with dataclasses.InitVar (GH-8927)
2019-06-02 22:14:48 -04:00
Victor Stinner
0025350294
bpo-37069: tests use catch_unraisable_exception() (GH-13762)
...
Modify test_coroutines, test_cprofile, test_generators, test_raise,
test_ssl and test_yield_from to use
support.catch_unraisable_exception() rather than
support.captured_stderr().
test_thread: remove test_save_exception_state_on_error() which is now
updated. test_unraisable_exception() checks that sys.unraisablehook()
is called to handle _thread.start_new_thread() exception.
test_cprofile now rely on unittest for test discovery: replace
support.run_unittest() with unittest.main().
2019-06-03 03:51:43 +02:00
Matthias Bussonnier
13136e83a6
bpo-36896: Clarify that some types constructors are unstable (GH-13271)
2019-06-03 02:43:21 +02:00
Petr Viktorin
1e375c6269
bpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761)
...
Apologies for the earlier hasty attempt.
2019-06-03 02:28:29 +02:00
Jeroen Demeyer
be718c33f0
bpo-36974: add some assertions for PEP 590 (GH-13682)
2019-06-03 01:57:22 +02:00
Jeroen Demeyer
9e3e06e582
bpo-36974: document PEP 590 (GH-13450)
2019-06-03 01:43:13 +02:00
Ivan Levkivskyi
82eac26a73
Update the annotated assignment docs (GH-13757)
2019-06-03 00:41:00 +01:00
Victor Stinner
3cf7ea1272
bpo-37100: Fix test_coroutines with -Werror (GH-13756)
...
test_coroutines: test_unawaited_warning_when_module_broken() now uses
support.check_warnings() to catch expected RuntimeWarning.
2019-06-03 01:35:37 +02:00
Petr Viktorin
7f4ae1b2cc
bpo-37012: Clean up special cases in PyType_FromSpecWithBases slot assignments (GH-13496)
...
The main slot assignment loop is now if-else if ladder, making the
control flow clearer.
Based on suggestion by Victor Stinner in:
https://github.com/python/cpython/pull/10304/#issuecomment-491123026
2019-06-03 01:31:12 +02:00
Xtreak
0d70227e41
Fix typos in docs and docstrings (GH-13745)
2019-06-03 01:12:33 +02:00