Felix Yan
015efdbef7
bpo-41302: Fix build with system libmpdec (GH-21481)
...
Move definition of UNUSED from modified headers of libmpdec to
_decimal.c itself. This makes the vendored source closer to the
standalone library and fixes build with --with-system-libmpdec.
Tested to build fine with either system libmpdec or the vendored one.
2020-07-15 14:14:11 +02:00
Rishi
5a8d121a1f
bpo-39017: Avoid infinite loop in the tarfile module (GH-21454)
...
Avoid infinite loop when reading specially crafted TAR files using the tarfile module
(CVE-2019-20907).
2020-07-15 13:51:00 +02:00
Zackery Spytz
bbceef6851
bpo-20183: Convert _locale to the Argument Clinic (GH-14201)
2020-07-15 12:07:34 +03:00
Tony Solomonik
568fb0ff4a
bpo-41273: asyncio's proactor read transport's better performance by using recv_into instead of recv ( #21442 )
...
* bpo-41273: Proactor transport read loop to use recv_into
By using recv_into instead of recv we do not allocate a new buffer each
time _loop_reading calls recv.
This betters performance for any stream using proactor (basically any
asyncio stream on windows).
* bpo-41273: Double proactor read transport buffer size
By doubling the read buffer size we get better performance.
2020-07-14 12:41:24 -07:00
JustAnotherArchivist
2a5181829a
bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)
...
#msg373510
[bpo-32528]()/#13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document.
Automerge-Triggered-By: @1st1
2020-07-14 10:22:43 -07:00
Paul McMillan
4f28f75dee
Fix repeated words in Classes tutorial (GH-21455)
...
The phrase "At any time during execution," was repeated twice.
Automerge-Triggered-By: @Mariatta
2020-07-13 18:26:23 -07:00
Joannah Nanjekye
8dd32fe645
bpo-32192: A basic lazy importer example (GH-21330)
...
* Add example on lazy imports
* Use four spaces for indentation
* change to console
2020-07-13 18:31:02 -03:00
Serhiy Storchaka
4f309abf55
bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458)
...
Automerge-Triggered-By: @tiran
2020-07-13 05:49:26 -07:00
Serhiy Storchaka
b0689ae7f9
bpo-41146: Convert signal.default_int_handler() to Argument Clinic (GH-21197)
2020-07-12 19:15:20 +03:00
Zackery Spytz
545b54d2ab
bpo-20175: Convert Modules/_multiprocessing to the Argument Clinic (GH-14245)
2020-07-12 19:11:11 +03:00
Zackery Spytz
b7047e59a4
bpo-20181: Convert the readline module to the Argument Clinic ( #14326 )
2020-07-12 19:01:03 +03:00
Sergey Golitsynskiy
6a1e9c2673
Fix error in docstrings in bisect module (GH-21422)
...
The docstrings for `bisect_right()` and `bisect_left()` contain sample
code that has a bug: `a.insert(x)` should be `a.insert(i, x)`.
2020-07-11 20:18:31 -03:00
Nima Dini
344dce312a
bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372)
2020-07-10 21:54:53 -04:00
Serhiy Storchaka
4c8f09d7ce
bpo-36346: Make using the legacy Unicode C API optional (GH-21437)
...
Add compile time option USE_UNICODE_WCHAR_CACHE. Setting it to 0
makes the interpreter not using the wchar_t cache and the legacy Unicode C API.
2020-07-10 23:26:06 +03:00
Zackery Spytz
9650fe0197
bpo-20179: Convert the _overlapped module to the Argument Clinic (GH-14275)
2020-07-10 20:43:37 +03:00
marload
6fc732a211
Fix typo in docs: 'created by th' -> 'created by the' (GH-21384)
2020-07-10 21:13:31 +05:30
Victor Stinner
8182cc2e68
bpo-39573: Use the Py_TYPE() macro (GH-21433)
...
Replace obj->ob_type with Py_TYPE(obj).
2020-07-10 12:40:38 +02:00
Serhiy Storchaka
d878349bac
bpo-36346: Do not use legacy Unicode C API in ctypes. ( #21429 )
2020-07-10 11:17:21 +03:00
Serhiy Storchaka
0f9aa47bab
bpo-41263: Convert code.__new__ to Argument Clinic (GH-21426)
2020-07-10 10:12:04 +03:00
Joannah Nanjekye
3cbade7d30
bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326)
...
* Clarify __deepcopy__ memo dict argument usage
* Add full stop
2020-07-09 21:36:35 -03:00
Terry Jan Reedy
bce2eb4646
bpo-37765: Add keywords to IDLE tab completions (GH-15138)
...
Keywords are present in the main module tab completion lists generated by rlcompleter, which is used by REPLs on *nix. Add all keywords to IDLE's main module name list except those already added from builtins (True, False, and None) . This list may also be used by Show Completions on the Edit menu, and its hot key.
Rewrite Completions doc.
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2020-07-09 18:08:33 -04:00
E-Paine
1ee5dc1586
Remove trailing >>> in enum docs (GH-21358)
...
The >>> as the last line serve no purpose and are not colored correctly by Sphinx.
2020-07-09 12:18:34 -07:00
Steve Dower
af56c4fc76
bpo-41172: Fix check for compiler in test suite (GH-21400)
2020-07-09 18:52:43 +01:00
Chris Jerdonek
8b33961e4b
bpo-29590: fix stack trace for gen.throw() with yield from ( #19896 )
...
* Add failing test.
* bpo-29590: fix stack trace for gen.throw() with yield from (GH-NNNN)
When gen.throw() is called on a generator after a "yield from", the
intermediate stack trace entries are lost. This commit fixes that.
2020-07-09 14:27:23 +01:00
Hai Shi
96a6a6d42b
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
2020-07-09 15:25:10 +02:00
marload
61bb24a270
bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413)
...
Automerge-Triggered-By: @ericvsmith
2020-07-09 05:13:47 -07:00
Zackery Spytz
ee96f32ca2
bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407)
2020-07-09 03:00:21 -07:00
Julien Palard
a908bc4dd8
Doc: Builtins functions: faster jump table (GH-21376)
2020-07-09 11:38:41 +02:00
Mark Sapiro
4fa61a7732
bpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542)
2020-07-08 14:00:35 -07:00
stratakis
61fc23ca10
bpo-41175: Guard against a NULL pointer dereference within bytearrayobject (GH-21240)
...
The issue is triggered by the bytearray() + bytearray() operation.
Detected by GCC 10 static analysis tool.
2020-07-08 22:39:41 +02:00
Tony Solomonik
529f42645d
bpo-41247: asyncio.set_running_loop() cache running loop holder (GH-21401)
...
The running loop holder cache variable was always set to NULL when
calling set_running_loop.
Now set_running_loop saves the newly created running loop holder in the
cache variable for faster access in get_running_loop.
Automerge-Triggered-By: @1st1
2020-07-08 12:27:31 -07:00
Victor Stinner
b26a0db8ea
Revert "bpo-40170: PyType_HasFeature() now always calls PyType_GetFlags() (GH-19378)" (GH-21390)
...
This partially reverts commit 45ec5b99ae
.
2020-07-08 11:02:23 +02:00
Zackery Spytz
aebc049557
closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21385)
2020-07-07 23:21:58 -05:00
Joannah Nanjekye
6f13adf59e
Add a test for get_id() (GH-21370)
2020-07-07 21:45:45 -03:00
Steve Dower
10772ec150
bpo-41173: Copy test results file from ARM worker before uploading (GH-21305)
2020-07-08 00:24:39 +01:00
Joannah Nanjekye
a95ac779e6
bpo-41224: Document is_annotated() in symtable module and update doc strings (GH-21369)
...
* Document is_annotate() and update doc strings
* Move quotes to the next line.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-07-07 20:09:56 -03:00
Victor Stinner
8f42748ded
bpo-29778: test_embed tests the path configuration (GH-21306)
2020-07-08 00:20:37 +02:00
Jason R. Coombs
6ae2780be0
bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)
...
Automerge-Triggered-By: @jaraco
2020-07-07 04:11:28 -07:00
Lysandros Nikolaou
782f44b8fb
bpo-41215: Make assertion in the new parser more strict (GH-21364)
2020-07-07 01:42:21 +03:00
Pablo Galindo
c2c1f1f906
bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363)
2020-07-06 23:30:14 +01:00
Matthias Bussonnier
bd46174a5a
bpo-41218: Only mark async code with CO_COROUTINE. ( #21357 )
...
3.8.3 had a regression where compiling with
ast.PyCF_ALLOW_TOP_LEVEL_AWAIT woudl agressively mark things are
coroutine even if there were not.
2020-07-06 23:26:52 +02:00
Julien Palard
a103e73ce8
bpo-40742: Doc: fix parallel build. (GH-21237)
2020-07-06 22:28:15 +02:00
Pablo Galindo
1ac0cbca36
bpo-41215: Don't use NULL by default in the PEG parser keyword list (GH-21355)
...
Automerge-Triggered-By: @lysnikolaou
2020-07-06 12:31:16 -07:00
Steve Dower
dcbaa1b49c
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297)
...
Also enables using debug build of `python3_d.dll`
Reference: CVE-2020-15523
2020-07-06 17:32:00 +01:00
Hai Shi
deb016224c
bpo-40275: Use new test.support helper submodules in tests (GH-21317)
2020-07-06 14:29:49 +02:00
Dong-hee Na
b4a9263708
bpo-37207: Update whatsnews for 3.9 (GH-21337)
2020-07-06 13:22:04 +02:00
Hai Shi
a089d21df1
bpo-40275: Use new test.support helper submodules in tests (GH-21315)
2020-07-06 11:15:08 +02:00
Hai Shi
883bc63833
bpo-40275: Use new test.support helper submodules in tests (GH-21314)
2020-07-06 11:12:49 +02:00
Inada Naoki
9ce8132e1f
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
2020-07-06 11:48:30 +09:00
Joannah Nanjekye
d12af71047
bpo-28681: Clarify multiple function names in the tutorial (GH-21340)
...
* improve control flow docs
* Add also
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-07-05 22:47:15 -03:00