]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-41173: Copy test results file from ARM worker before uploading (GH-21305)
Steve Dower [Tue, 7 Jul 2020 23:24:39 +0000 (00:24 +0100)] 
bpo-41173: Copy test results file from ARM worker before uploading (GH-21305)

5 years agobpo-41224: Document is_annotated() in symtable module and update doc strings (GH...
Joannah Nanjekye [Tue, 7 Jul 2020 23:09:56 +0000 (20:09 -0300)] 
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>
5 years agobpo-29778: test_embed tests the path configuration (GH-21306)
Victor Stinner [Tue, 7 Jul 2020 22:20:37 +0000 (00:20 +0200)] 
bpo-29778: test_embed tests the path configuration (GH-21306)

5 years agobpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)
Jason R. Coombs [Tue, 7 Jul 2020 11:11:28 +0000 (07:11 -0400)] 
bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)

Automerge-Triggered-By: @jaraco
5 years agobpo-41215: Make assertion in the new parser more strict (GH-21364)
Lysandros Nikolaou [Mon, 6 Jul 2020 22:42:21 +0000 (01:42 +0300)] 
bpo-41215: Make assertion in the new parser more strict (GH-21364)

5 years agobpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363)
Pablo Galindo [Mon, 6 Jul 2020 22:30:14 +0000 (23:30 +0100)] 
bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363)

5 years agobpo-41218: Only mark async code with CO_COROUTINE. (#21357)
Matthias Bussonnier [Mon, 6 Jul 2020 21:26:52 +0000 (14:26 -0700)] 
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.

5 years agobpo-40742: Doc: fix parallel build. (GH-21237)
Julien Palard [Mon, 6 Jul 2020 20:28:15 +0000 (22:28 +0200)] 
bpo-40742: Doc: fix parallel build. (GH-21237)

5 years agobpo-41215: Don't use NULL by default in the PEG parser keyword list (GH-21355)
Pablo Galindo [Mon, 6 Jul 2020 19:31:16 +0000 (20:31 +0100)] 
bpo-41215: Don't use NULL by default in the PEG parser keyword list (GH-21355)

Automerge-Triggered-By: @lysnikolaou
5 years agobpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedde...
Steve Dower [Mon, 6 Jul 2020 16:32:00 +0000 (17:32 +0100)] 
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

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21317)
Hai Shi [Mon, 6 Jul 2020 12:29:49 +0000 (20:29 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21317)

5 years agobpo-37207: Update whatsnews for 3.9 (GH-21337)
Dong-hee Na [Mon, 6 Jul 2020 11:22:04 +0000 (20:22 +0900)] 
bpo-37207: Update whatsnews for 3.9 (GH-21337)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21315)
Hai Shi [Mon, 6 Jul 2020 09:15:08 +0000 (17:15 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21315)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21314)
Hai Shi [Mon, 6 Jul 2020 09:12:49 +0000 (17:12 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21314)

5 years agobpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
Inada Naoki [Mon, 6 Jul 2020 02:48:30 +0000 (11:48 +0900)] 
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)

5 years agobpo-28681: Clarify multiple function names in the tutorial (GH-21340)
Joannah Nanjekye [Mon, 6 Jul 2020 01:47:15 +0000 (22:47 -0300)] 
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>
5 years agobpo-26205: Specify the number of nested scopes (GH-21324)
Joannah Nanjekye [Mon, 6 Jul 2020 01:42:24 +0000 (22:42 -0300)] 
bpo-26205: Specify the number of nested scopes (GH-21324)

* Clarify number of scopes

* Indicate 3 or 4

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-29727: Register array.array as a MutableSequence (GH-21338)
Pablo Galindo [Sun, 5 Jul 2020 21:43:14 +0000 (22:43 +0100)] 
bpo-29727: Register array.array as a MutableSequence (GH-21338)

5 years agobpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)
Serhiy Storchaka [Sun, 5 Jul 2020 15:53:45 +0000 (18:53 +0300)] 
bpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)

5 years agobpo-39168: Remove the __new__ method of typing.Generic (GH-21327)
Zackery Spytz [Sun, 5 Jul 2020 05:07:43 +0000 (23:07 -0600)] 
bpo-39168: Remove the __new__ method of typing.Generic (GH-21327)

Automerge-Triggered-By: @gvanrossum
5 years agobpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
Inada Naoki [Sun, 5 Jul 2020 04:01:48 +0000 (13:01 +0900)] 
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)

It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.

5 years agoUncomment Py_DEPRECATED for Py_UNICODE APIs (GH-21318)
Inada Naoki [Sun, 5 Jul 2020 02:01:54 +0000 (11:01 +0900)] 
Uncomment Py_DEPRECATED for Py_UNICODE APIs (GH-21318)

PyUnicode_EncodeDecimal and PyUnicode_TransformDecimalToASCII
are deprecated since Python 3.3.
But Py_DEPRECATED(3.3) was commented out.

5 years agobpo-41204: Fix compiler warning in ast_type_init() (GH-21307)
Victor Stinner [Sat, 4 Jul 2020 21:18:15 +0000 (23:18 +0200)] 
bpo-41204: Fix compiler warning in ast_type_init() (GH-21307)

5 years agobpo-33864: Clarify the docs for typing.ByteString (GH-21311)
Zackery Spytz [Sat, 4 Jul 2020 03:58:21 +0000 (21:58 -0600)] 
bpo-33864: Clarify the docs for typing.ByteString (GH-21311)

5 years agobpo-41162: Clear audit hooks later during finalization (GH-21222)
Konge [Fri, 3 Jul 2020 21:06:46 +0000 (05:06 +0800)] 
bpo-41162: Clear audit hooks later during finalization (GH-21222)

5 years agobpo-41180: Audit code.__new__ when unmarshalling (GH-21271)
tkmikan [Fri, 3 Jul 2020 20:56:30 +0000 (04:56 +0800)] 
bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)

5 years agobpo-41194: Convert _ast extension to PEP 489 (GH-21293)
Victor Stinner [Fri, 3 Jul 2020 18:01:46 +0000 (20:01 +0200)] 
bpo-41194: Convert _ast extension to PEP 489 (GH-21293)

Convert the _ast extension module to PEP 489 "Multiphase
initialization". Replace the global _ast state with a module state.

5 years agobpo-1635741: Port faulthandler module to multiphase initialization (GH-21294)
Dong-hee Na [Fri, 3 Jul 2020 16:36:47 +0000 (01:36 +0900)] 
bpo-1635741: Port faulthandler module to multiphase initialization (GH-21294)

5 years agobpo-1635741: Fix unicode_dealloc() for mortal interned string (GH-21270)
Victor Stinner [Fri, 3 Jul 2020 14:59:12 +0000 (16:59 +0200)] 
bpo-1635741: Fix unicode_dealloc() for mortal interned string (GH-21270)

When unicode_dealloc() is called on a mortal interned string, the
string reference counter is now reset at zero.

5 years agobpo-41194: The _ast module cannot be loaded more than once (GH-21290)
Victor Stinner [Fri, 3 Jul 2020 12:15:53 +0000 (14:15 +0200)] 
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.

5 years agobpo-41194: Pass module state in Python-ast.c (GH-21284)
Victor Stinner [Fri, 3 Jul 2020 09:35:37 +0000 (11:35 +0200)] 
bpo-41194: Pass module state in Python-ast.c (GH-21284)

Rework asdl_c.py to pass the module state to functions in
Python-ast.c, instead of using astmodulestate_global.

Handle also PyState_AddModule() failure in init_types().

5 years agobpo-1635741: Port sha256 module to multiphase init (PEP 489) (GH-21189)
Mohamed Koubaa [Fri, 3 Jul 2020 08:59:47 +0000 (03:59 -0500)] 
bpo-1635741: Port sha256 module to multiphase init (PEP 489) (GH-21189)

5 years agobpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattr...
scoder [Fri, 3 Jul 2020 00:09:28 +0000 (02:09 +0200)] 
bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092)

Automerge-Triggered-By: @gvanrossum
5 years agoRemove extraneous file from the Docs folder (GH-21286)
Pablo Galindo [Thu, 2 Jul 2020 22:08:36 +0000 (23:08 +0100)] 
Remove extraneous file from the Docs folder (GH-21286)

5 years agobpo-41193: Ignore OSError in readline write_history() (GH-21279)
Victor Stinner [Thu, 2 Jul 2020 10:43:25 +0000 (12:43 +0200)] 
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.

5 years agobpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks...
Rémi Lapeyre [Thu, 2 Jul 2020 03:41:21 +0000 (05:41 +0200)] 
bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874)

5 years agobpo-1635741: Release Unicode interned strings at exit (GH-21269)
Victor Stinner [Wed, 1 Jul 2020 23:19:57 +0000 (01:19 +0200)] 
bpo-1635741: Release Unicode interned strings at exit (GH-21269)

* PyUnicode_InternInPlace() now ensures that interned strings are
  ready.
* Add _PyUnicode_ClearInterned().
* Py_Finalize() now releases Unicode interned strings:
  call _PyUnicode_ClearInterned().

5 years agobpo-40521: Cleanup finalize_interp_types() (GH-21265)
Victor Stinner [Wed, 1 Jul 2020 21:21:36 +0000 (23:21 +0200)] 
bpo-40521: Cleanup finalize_interp_types() (GH-21265)

Remove the now unused is_main_interp parameter of
finalize_interp_types().

5 years agobpo-39385: Add an assertNoLogs context manager to unittest.TestCase (GH-18067)
Kit Choi [Wed, 1 Jul 2020 21:08:38 +0000 (22:08 +0100)] 
bpo-39385: Add an assertNoLogs context manager to unittest.TestCase (GH-18067)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
5 years agobpo-41187: Convert the _msi module to Argument Clinic (GH-21264)
Serhiy Storchaka [Wed, 1 Jul 2020 18:53:07 +0000 (21:53 +0300)] 
bpo-41187: Convert the _msi module to Argument Clinic (GH-21264)

5 years agoAdd lysnikolaou to CODEOWNERS for the new parser (GH-21252)
Lysandros Nikolaou [Wed, 1 Jul 2020 09:47:35 +0000 (12:47 +0300)] 
Add lysnikolaou to CODEOWNERS for the new parser (GH-21252)

5 years agoDoc: Minor fix to init config C API documentation (GH-21198)
tomerv [Wed, 1 Jul 2020 09:32:54 +0000 (12:32 +0300)] 
Doc: Minor fix to init config C API documentation (GH-21198)

Co-authored-by: Tomer Vromen <tomer.vromen@intel.com>
5 years agobpo-41161 Add news entry for libmpdec-2.5.0 (GH-21243)
Stefan Krah [Tue, 30 Jun 2020 18:58:57 +0000 (20:58 +0200)] 
bpo-41161 Add news entry for libmpdec-2.5.0  (GH-21243)

5 years agobpo-39314: Closes parenthesis when autocompleting for functions that take no argument...
Rémi Lapeyre [Tue, 30 Jun 2020 13:48:15 +0000 (15:48 +0200)] 
bpo-39314: Closes parenthesis when autocompleting for functions that take no arguments (GH-20562)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21169)
Hai Shi [Tue, 30 Jun 2020 13:46:31 +0000 (21:46 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21169)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21219)
Hai Shi [Tue, 30 Jun 2020 13:46:06 +0000 (21:46 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21219)

5 years agoUpdate FAQ release schedule and estimated users (GH-21180)
E-Paine [Tue, 30 Jun 2020 09:42:43 +0000 (11:42 +0200)] 
Update FAQ release schedule and estimated users (GH-21180)

Update FAQ to include:
* The new yearly release schedule from PEP 602
* Estimated users from "tens of thousands" to "millions"

5 years agobpo-41100: fix _decimal for arm64 Mac OS (GH-21228)
Lawrence D'Anna [Tue, 30 Jun 2020 09:15:46 +0000 (02:15 -0700)] 
bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)

Patch by Lawrence Danna.

5 years agobpo-41142: Add support of non-ASCII paths for CAB files. (GH-21195)
Serhiy Storchaka [Tue, 30 Jun 2020 08:56:03 +0000 (11:56 +0300)] 
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.

5 years agobpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)
Serhiy Storchaka [Tue, 30 Jun 2020 06:33:22 +0000 (09:33 +0300)] 
bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)

5 years agobpo-36346: Raise DeprecationWarning when creating legacy Unicode (GH-20933)
Inada Naoki [Tue, 30 Jun 2020 06:26:56 +0000 (15:26 +0900)] 
bpo-36346: Raise DeprecationWarning when creating legacy Unicode (GH-20933)

5 years agobpo-36346: Prepare for removing the legacy Unicode C API (AC only). (GH-21223)
Serhiy Storchaka [Tue, 30 Jun 2020 06:03:15 +0000 (09:03 +0300)] 
bpo-36346: Prepare for removing the legacy Unicode C API (AC only). (GH-21223)

5 years agobpo-41123: Remove PyUnicode_AsUnicodeCopy (GH-21209)
Inada Naoki [Tue, 30 Jun 2020 03:23:07 +0000 (12:23 +0900)] 
bpo-41123: Remove PyUnicode_AsUnicodeCopy (GH-21209)

5 years agobpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)
Serhiy Storchaka [Tue, 30 Jun 2020 00:18:22 +0000 (03:18 +0300)] 
bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)

5 years agobpo-23427: Add sys.orig_argv attribute (GH-20729)
Victor Stinner [Mon, 29 Jun 2020 22:49:03 +0000 (00:49 +0200)] 
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.

5 years agobpo-40924: Ensure importlib.resources.path returns an extant path (GH-20857)
Jason R. Coombs [Mon, 29 Jun 2020 20:59:22 +0000 (16:59 -0400)] 
bpo-40924: Ensure importlib.resources.path returns an extant path (GH-20857)

5 years agobpo-37999: Simplify the conversion code for %c, %d, %x, etc. (GH-20437)
Serhiy Storchaka [Mon, 29 Jun 2020 19:36:41 +0000 (22:36 +0300)] 
bpo-37999: Simplify the conversion code for %c, %d, %x, etc. (GH-20437)

Since PyLong_AsLong() no longer use __int__, explicit call
of PyNumber_Index() before it is no longer needed.

5 years agoFix typo in Object/listobject.c (GH-21079)
Jeong Ukjae [Mon, 29 Jun 2020 18:56:56 +0000 (03:56 +0900)] 
Fix typo in Object/listobject.c (GH-21079)

5 years agobpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)
Ravi Teja P [Mon, 29 Jun 2020 17:39:29 +0000 (23:09 +0530)] 
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

5 years agoUpdate libmpdec license dates (GH-21216)
Stefan Krah [Mon, 29 Jun 2020 12:03:01 +0000 (14:03 +0200)] 
Update libmpdec license dates (GH-21216)

5 years agobpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding...
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Mon, 29 Jun 2020 08:36:48 +0000 (14:06 +0530)] 
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)

5 years agobpo-41123: Remove PyLong_FromUnicode() (GH-21204)
Inada Naoki [Mon, 29 Jun 2020 04:00:43 +0000 (13:00 +0900)] 
bpo-41123: Remove PyLong_FromUnicode() (GH-21204)

5 years agobpo-41123: Remove PyUnicode_GetMax() (GH-21192)
Inada Naoki [Mon, 29 Jun 2020 01:46:51 +0000 (10:46 +0900)] 
bpo-41123: Remove PyUnicode_GetMax() (GH-21192)

5 years agobpo-40874 Update the required libmpdec version for the decimal module (GH-21202)
Stefan Krah [Sun, 28 Jun 2020 20:01:01 +0000 (22:01 +0200)] 
bpo-40874 Update the required libmpdec version for the decimal module (GH-21202)

5 years agobpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)
Serhiy Storchaka [Sun, 28 Jun 2020 10:34:22 +0000 (13:34 +0300)] 
bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)

Fix also a resource warning when store counts and module info.

5 years agobpo-31082: Use "iterable" in the docstring for functools.reduce() (GH-20796)
Zackery Spytz [Sun, 28 Jun 2020 06:40:54 +0000 (00:40 -0600)] 
bpo-31082: Use "iterable" in the docstring for functools.reduce() (GH-20796)

5 years agobpo-41144: Fix IDLE open module error (#21182)
E-Paine [Sun, 28 Jun 2020 06:02:47 +0000 (08:02 +0200)] 
bpo-41144: Fix IDLE open module error (#21182)

Could not open os.path.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-38870: Extend subject of ast.unparse warnings (GH-21053)
Batuhan Taskaya [Sun, 28 Jun 2020 01:11:43 +0000 (04:11 +0300)] 
bpo-38870: Extend subject of ast.unparse warnings (GH-21053)

- Mention that some compiler optimizations might not roundtrip
exactly (such as constant tuples and frozensets).

- Add a warning about it might raise RecursionError on very
complex expressions due to recursive unparsing aspect of ast.unparse

5 years agobpo-39151: Simplify DFS in the assembler (GH-17733)
Pablo Galindo [Sun, 28 Jun 2020 00:55:47 +0000 (01:55 +0100)] 
bpo-39151: Simplify DFS in the assembler (GH-17733)

5 years agobpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21021)
Guido van Rossum [Sun, 28 Jun 2020 00:33:49 +0000 (17:33 -0700)] 
bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21021)

5 years agobpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)
Lysandros Nikolaou [Sat, 27 Jun 2020 23:41:48 +0000 (02:41 +0300)] 
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.

5 years agoAdd soft keywords to the documentation (GH-21185)
Pablo Galindo [Sat, 27 Jun 2020 19:00:29 +0000 (20:00 +0100)] 
Add soft keywords to the documentation (GH-21185)

5 years agobpo-40769: Allow extra surrounding parentheses for invalid annotated assignment rule...
Batuhan Taskaya [Sat, 27 Jun 2020 18:33:08 +0000 (21:33 +0300)] 
bpo-40769: Allow extra surrounding parentheses for invalid annotated assignment rule (GH-20387)

5 years agobpo-41132: Use pymalloc allocator in the f-string parser (GH-21173)
Lysandros Nikolaou [Sat, 27 Jun 2020 17:47:00 +0000 (20:47 +0300)] 
bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173)

5 years agoRemove dead code from tracemalloc (GH-21029)
Christian Heimes [Sat, 27 Jun 2020 12:13:47 +0000 (14:13 +0200)] 
Remove dead code from tracemalloc (GH-21029)

tracemalloc_get_frame() checked filename == NULL two times in a row.

Signed-off-by: Christian Heimes <christian@python.org>
5 years agobpo-41123: Remove Py_UNICODE_str* functions (GH-21164)
Inada Naoki [Sat, 27 Jun 2020 09:22:09 +0000 (18:22 +0900)] 
bpo-41123: Remove Py_UNICODE_str* functions (GH-21164)

They are undocumented and deprecated since Python 3.3.

5 years agobpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
Ned Deily [Sat, 27 Jun 2020 08:44:56 +0000 (04:44 -0400)] 
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)

5 years agobpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)
Lysandros Nikolaou [Fri, 26 Jun 2020 11:24:05 +0000 (14:24 +0300)] 
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`.

5 years agoImprove code organization for the random module (GH-21161)
Raymond Hettinger [Fri, 26 Jun 2020 00:03:50 +0000 (17:03 -0700)] 
Improve code organization for the random module (GH-21161)

5 years agobpo-41119: Output correct error message for list/tuple followed by colon (GH-21160)
Lysandros Nikolaou [Thu, 25 Jun 2020 23:22:36 +0000 (02:22 +0300)] 
bpo-41119: Output correct error message for list/tuple followed by colon (GH-21160)

5 years agobpo-41103: Remove old buffer protocol support (#21117)
Inada Naoki [Thu, 25 Jun 2020 23:07:22 +0000 (08:07 +0900)] 
bpo-41103: Remove old buffer protocol support (#21117)

They are deprecated since Python 3.0.

5 years agoFix typo in functions.rst (GH-21131)
Ram Rachum [Thu, 25 Jun 2020 21:50:37 +0000 (00:50 +0300)] 
Fix typo in functions.rst (GH-21131)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21151)
Hai Shi [Thu, 25 Jun 2020 17:17:57 +0000 (01:17 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21151)

Use new test.support helper submodules in tests:

* distutils tests
* test_buffer
* test_compile
* test_filecmp
* test_fileinput
* test_readline
* test_smtpnet
* test_structmembers
* test_tools

5 years agobpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters. (GH...
Serhiy Storchaka [Thu, 25 Jun 2020 14:56:31 +0000 (17:56 +0300)] 
bpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters. (GH-21035)

5 years agoBPO-41100: Support macOS 11 when building (GH-21113)
Ronald Oussoren [Thu, 25 Jun 2020 14:55:48 +0000 (16:55 +0200)] 
BPO-41100: Support macOS 11 when building (GH-21113)

5 years agobpo-40939: run autoreconf to fix configure{,.ac} disparity (GH-21152)
Ned Deily [Thu, 25 Jun 2020 14:46:44 +0000 (10:46 -0400)] 
bpo-40939: run autoreconf to fix configure{,.ac} disparity (GH-21152)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-20824)
Hai Shi [Thu, 25 Jun 2020 12:15:40 +0000 (20:15 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-20824)

5 years agobpo-40521: Optimize PyBytes_FromStringAndSize(str, 0) (GH-21142)
Victor Stinner [Thu, 25 Jun 2020 12:07:40 +0000 (14:07 +0200)] 
bpo-40521: Optimize PyBytes_FromStringAndSize(str, 0) (GH-21142)

Always create the empty bytes string singleton.

Optimize PyBytes_FromStringAndSize(str, 0): it no longer has to check
if the empty string singleton was created or not, it is always
available.

Add functions:

* _PyBytes_Init()
* bytes_get_empty(), bytes_new_empty()
* bytes_create_empty_string_singleton()
* unicode_create_empty_string_singleton()

_Py_unicode_state: rename empty structure member to empty_string.

5 years agobpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
Serhiy Storchaka [Thu, 25 Jun 2020 11:43:33 +0000 (14:43 +0300)] 
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)

5 years agobpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)
Serhiy Storchaka [Thu, 25 Jun 2020 11:31:30 +0000 (14:31 +0300)] 
bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)

5 years agobpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)
Ned Deily [Thu, 25 Jun 2020 11:22:10 +0000 (07:22 -0400)] 
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)

5 years agobpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)
Serhiy Storchaka [Thu, 25 Jun 2020 11:21:25 +0000 (14:21 +0300)] 
bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-20849)
Hai Shi [Thu, 25 Jun 2020 10:38:51 +0000 (18:38 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-20849)

5 years agobpo-39580: add check for CLI installation on macOS (GH-20271)
Rick Heil [Thu, 25 Jun 2020 10:37:40 +0000 (06:37 -0400)] 
bpo-39580: add check for CLI installation on macOS (GH-20271)

Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.

5 years agoForward port macOS installer updates from 3.7/3.8/3.9 (GH-21132)
Ned Deily [Thu, 25 Jun 2020 08:51:46 +0000 (04:51 -0400)] 
Forward port macOS installer updates from 3.7/3.8/3.9 (GH-21132)

5 years agobpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)
Serhiy Storchaka [Thu, 25 Jun 2020 08:37:12 +0000 (11:37 +0300)] 
bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)

* Fix support of non-ASCII names in functions OpenDatabase()
  and init_database().
* Fix support of non-ASCII SQL in method Database.OpenView().

5 years agobpo-41002: Optimize HTTPResponse.read with a given amount (GH-20943)
Bruce Merry [Thu, 25 Jun 2020 06:30:21 +0000 (08:30 +0200)] 
bpo-41002: Optimize HTTPResponse.read with a given amount (GH-20943)

I've done the implementation for both non-chunked and chunked reads. I haven't benchmarked chunked reads because I don't currently have a convenient way to generate a high-bandwidth chunked stream, but I don't see any reason that it shouldn't enjoy the same benefits that the non-chunked case does. I've used the benchmark attached to the bpo bug to verify that performance now matches the unsized read case.

Automerge-Triggered-By: @methane
5 years agobpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
Arisaka97 [Wed, 24 Jun 2020 21:50:49 +0000 (05:50 +0800)] 
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)

Automerge-Triggered-By: @merwok
5 years agobpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
Serhiy Storchaka [Wed, 24 Jun 2020 16:46:30 +0000 (19:46 +0300)] 
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)

5 years agobpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)
Nikita Nemkin [Wed, 24 Jun 2020 16:27:42 +0000 (21:27 +0500)] 
bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)

In absence of explicit declaration, resource compiler uses system
codepage. When this codepage is DBCS or UTF-8, Python's copyright
string is corrupted, because it contains copyright sign encoded
as \xA9.

The fix is to explicitly declare codepage 1252.