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
Petr Viktorin
e584cbff1e
bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)
2019-06-03 01:08:14 +02:00
Andrew Svetlov
c6789d6c85
bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatcher (GH-13754)
...
https://bugs.python.org/issue35621
2019-06-02 15:45:54 -07:00
Petr Viktorin
fb9423fd0a
bpo-36974: Make tp_call=PyVectorcall_Call work for inherited types (GH-13699)
...
When inheriting a heap subclass from a vectorcall class that sets
`.tp_call=PyVectorcall_Call` (as recommended in PEP 590), the subclass does
not inherit `_Py_TPFLAGS_HAVE_VECTORCALL`, and thus `PyVectorcall_Call` does
not work for it.
This attempts to solve the issue by:
* always inheriting `tp_vectorcall_offset` unless `tp_call` is overridden
in the subclass
* inheriting _Py_TPFLAGS_HAVE_VECTORCALL for static types, unless `tp_call`
is overridden
* making `PyVectorcall_Call` ignore `_Py_TPFLAGS_HAVE_VECTORCALL`
This means it'll be ever more important to only call `PyVectorcall_Call`
on classes that support vectorcall. In `PyVectorcall_Call`'s intended role
as `tp_call` filler, that's not a problem.
2019-06-02 23:52:20 +02:00
Michele Angrisano
e1179a5096
bpo-19184: Update the documentation of dis module. (GH-13652)
...
* bpo-19184: Update the documentation of dis module
* Explain the behavior of the number of arguments of RAISE_VARGARGS
opcode.
* bpo-19184: Update blurb.
* bpo-19184: Fix typo in the dis Documentation.
* bpo-19184: Address review comments and improve the doc
* bpo-19184: Remove news file.
2019-06-02 23:34:12 +02:00
Petr Viktorin
64e2c64f7f
test_gdb.test_pycfunction: test more calling conventions (GH-13668)
...
As the code paths for various METH_* conventions are diverging due
to optimizations, we should check they continue to be covered by
GDB integration.
2019-06-02 23:11:24 +02:00
Victor Stinner
cdce0574d0
bpo-36829: test_threading: Fix a ref cycle (GH-13752)
2019-06-02 23:08:41 +02:00
Michele Angrisano
aca273e240
bpo-37014: Update docstring and Documentation of fileinput.FileInput(). (GH-13545)
...
* bpo-37014: Update docstring and Documentation of fileinput.FileInput()
* Explain the behavior of fileinput.FileInput() when reading stdin.
* Update blurb.
* bpo-37014: Fix typo in the docstring and documentation.
2019-06-02 23:01:49 +02:00
Pablo Galindo
3caf4de6f0
Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)
2019-06-02 21:52:49 +01:00
Pablo Galindo
c0295dba25
bpo-37124: Fix reference leak in test_msilib (GH-13750)
2019-06-02 21:36:21 +01:00
Cheryl Sabella
6bdc4dee01
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
...
Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
2019-06-02 14:56:47 -04:00
Tim Hoffmann
5df4025f42
Add description to the command line help of the argument clinic (GH-8518)
2019-06-02 17:58:10 +01:00
Pablo Galindo
7ffcf848df
bpo-37126: Allow structseq objects to be tracked by the GC (GH-13729)
2019-06-02 15:45:13 +01:00
Andrew Svetlov
13ed07998a
bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread ( #13630 )
2019-06-02 13:56:38 +03:00
Mark Dickinson
c52996785a
bpo-36027: Extend three-argument pow to negative second argument (GH-13266)
2019-06-02 10:24:06 +01:00
Serhiy Storchaka
5ae299ac78
bpo-37128: Add math.perm(). (GH-13731)
2019-06-02 11:16:49 +03:00
Serhiy Storchaka
d71f3170ac
Add more tests for preserving identity in marshal. (GH-13736)
2019-06-02 09:03:59 +03:00
Anthony Sottile
b7daabd711
Improve version added references in `typing` module docs (GH-13457)
2019-06-02 01:13:25 +01:00
Raymond Hettinger
b7fade4f87
Put math.comb() docs is correct place alphabetically (GH-13734)
2019-06-01 15:01:46 -07:00
Eric Snow
6a150bcaeb
bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)
2019-06-01 15:39:46 -06:00
Marco Buttu
218e47b618
bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)
2019-06-01 14:11:47 -07:00