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
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
Zackery Spytz
ee96f32ca2
bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407)
2020-07-09 03:00:21 -07: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
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
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
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
Pablo Galindo
e51dd9dad6
bpo-29727: Register array.array as a MutableSequence (GH-21338)
2020-07-05 22:43:14 +01:00
Serhiy Storchaka
b3dd5cd4a3
bpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)
2020-07-05 18:53:45 +03:00
Zackery Spytz
7fed75597f
bpo-39168: Remove the __new__ method of typing.Generic (GH-21327)
...
Automerge-Triggered-By: @gvanrossum
2020-07-04 22:07:43 -07:00
Konge
daa0fe03a5
bpo-41162: Clear audit hooks later during finalization (GH-21222)
2020-07-03 22:06:46 +01:00
Dong-hee Na
c0b214bc08
bpo-1635741: Port faulthandler module to multiphase initialization (GH-21294)
2020-07-04 01:36:47 +09:00
Victor Stinner
91e1bc18bd
bpo-41194: The _ast module cannot be loaded more than once (GH-21290)
...
Fix a crash in the _ast module: it can no longer be loaded more than
once. It now uses a global state rather than a module state.
* Move _ast module state: use a global state instead.
* Set _astmodule.m_size to -1, so the extension cannot be loaded more
than once.
2020-07-03 14:15:53 +02:00
Mohamed Koubaa
9d006977d7
bpo-1635741: Port sha256 module to multiphase init (PEP 489) (GH-21189)
2020-07-03 17:59:47 +09:00
scoder
148f329135
bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092)
...
Automerge-Triggered-By: @gvanrossum
2020-07-02 17:09:28 -07:00
Victor Stinner
0ab917e07e
bpo-41193: Ignore OSError in readline write_history() (GH-21279)
...
The write_history() atexit function of the readline completer now
ignores any OSError to ignore error if the filesystem is read-only,
instead of only ignoring FileNotFoundError and PermissionError.
2020-07-02 12:43:25 +02:00
Rémi Lapeyre
004e64e805
bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874)
2020-07-01 20:41:21 -07:00
Kit Choi
6b34d7b51e
bpo-39385: Add an assertNoLogs context manager to unittest.TestCase (GH-18067)
...
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
2020-07-01 22:08:38 +01:00
Stefan Krah
1648c99932
bpo-41161 Add news entry for libmpdec-2.5.0 (GH-21243)
2020-06-30 20:58:57 +02:00
Rémi Lapeyre
bd4a3f2145
bpo-39314: Closes parenthesis when autocompleting for functions that take no arguments (GH-20562)
2020-06-30 22:48:15 +09:00
Lawrence D'Anna
604d95e235
bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)
...
Patch by Lawrence Danna.
2020-06-30 11:15:46 +02:00
Serhiy Storchaka
ba67d7386e
bpo-41142: Add support of non-ASCII paths for CAB files. (GH-21195)
...
* The path to the CAB file can be non-ASCII.
* Paths of added files can be non-ASCII.
2020-06-30 11:56:03 +03:00
Inada Naoki
038dd0f79d
bpo-36346: Raise DeprecationWarning when creating legacy Unicode (GH-20933)
2020-06-30 15:26:56 +09:00
Inada Naoki
b3332660ad
bpo-41123: Remove PyUnicode_AsUnicodeCopy (GH-21209)
2020-06-30 12:23:07 +09:00
Serhiy Storchaka
2515a28230
bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)
2020-06-29 20:18:22 -04:00
Victor Stinner
dd8a93e23b
bpo-23427: Add sys.orig_argv attribute (GH-20729)
...
Add sys.orig_argv attribute: the list of the original command line
arguments passed to the Python executable.
Rename also PyConfig._orig_argv to PyConfig.orig_argv and
document it.
2020-06-30 00:49:03 +02:00
Jason R. Coombs
2fb5f038f2
bpo-40924: Ensure importlib.resources.path returns an extant path (GH-20857)
2020-06-29 22:59:22 +02:00
Jeong Ukjae
5b96370030
Fix typo in Object/listobject.c (GH-21079)
2020-06-29 21:56:56 +03:00
Ravi Teja P
b30ee26e36
bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)
...
The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
2020-06-29 13:39:29 -04:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
7f569c9bc0
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)
2020-06-29 11:36:48 +03:00
Inada Naoki
e4f1fe6edb
bpo-41123: Remove PyLong_FromUnicode() (GH-21204)
2020-06-29 13:00:43 +09:00
Inada Naoki
d9f2a13106
bpo-41123: Remove PyUnicode_GetMax() (GH-21192)
2020-06-29 10:46:51 +09:00
Stefan Krah
8bea91b5e9
bpo-40874 Update the required libmpdec version for the decimal module (GH-21202)
2020-06-28 22:01:01 +02:00
Serhiy Storchaka
04cdeb7a56
bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)
...
Fix also a resource warning when store counts and module info.
2020-06-28 13:34:22 +03:00
Zackery Spytz
cd3c2bdd5d
bpo-31082: Use "iterable" in the docstring for functools.reduce() (GH-20796)
2020-06-28 15:40:54 +09:00
E-Paine
8ab77c6f9f
bpo-41144: Fix IDLE open module error ( #21182 )
...
Could not open os.path.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-06-28 02:02:47 -04:00
Guido van Rossum
9d197c7d48
bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags ( #21021 )
2020-06-27 17:33:49 -07:00
Lysandros Nikolaou
1f0f4abb11
bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)
...
This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.
2020-06-28 00:41:48 +01:00
Inada Naoki
20a7902175
bpo-41123: Remove Py_UNICODE_str* functions (GH-21164)
...
They are undocumented and deprecated since Python 3.3.
2020-06-27 18:22:09 +09:00
Ned Deily
2f168c6356
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
2020-06-27 04:44:56 -04:00
Lysandros Nikolaou
2e0a920e9e
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)
...
Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`.
2020-06-26 12:24:05 +01:00
Inada Naoki
6f8a6ee59c
bpo-41103: Remove old buffer protocol support ( #21117 )
...
They are deprecated since Python 3.0.
2020-06-26 08:07:22 +09:00
Serhiy Storchaka
700cfa8c90
bpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters. (GH-21035)
2020-06-25 17:56:31 +03:00
Ronald Oussoren
8ea6353f60
BPO-41100: Support macOS 11 when building (GH-21113)
2020-06-25 10:55:48 -04:00
Ned Deily
589e8fe079
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)
2020-06-25 07:22:10 -04:00