]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agoRemove spurious NULL in descrobject.c (GH-20344)
Hai Shi [Sun, 24 May 2020 05:03:50 +0000 (13:03 +0800)] 
Remove spurious NULL in descrobject.c (GH-20344)

Co-authored-by: hai shi <shihai1991@126.com>
5 years agoUse Py_ssize_t for the column number in the PEG support code (GH-20341)
Pablo Galindo [Sun, 24 May 2020 05:01:34 +0000 (06:01 +0100)] 
Use Py_ssize_t for the column number in the PEG support code (GH-20341)

5 years agobpo-40405: Fix asyncio.as_completed docs (GH-19753)
Bar Harel [Sat, 23 May 2020 23:14:31 +0000 (02:14 +0300)] 
bpo-40405: Fix asyncio.as_completed docs (GH-19753)

* Fix as_completed docs to correctly state the function return value.
* Also, improves the general wording of the as_completed documentation.

Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
Co-Authored-By: Yury Selivanov <yury@edgedb.com>
5 years agobpo-34556: Document addition of upgrade_deps to venv.create (GH-20135)
Shantanu [Sat, 23 May 2020 09:58:50 +0000 (02:58 -0700)] 
bpo-34556: Document addition of upgrade_deps to venv.create (GH-20135)

5 years agobpo-40439: Update broken link in lexical analysis docs (GH-20184)
Matteo Bertucci [Sat, 23 May 2020 01:12:09 +0000 (03:12 +0200)] 
bpo-40439: Update broken link in lexical analysis docs (GH-20184)

Automerge-Triggered-By: @csabella
5 years ago[doc] Add missing space in urllib.request.rst (GH-19860)
Sardorbek Imomaliev [Sat, 23 May 2020 01:05:05 +0000 (08:05 +0700)] 
[doc] Add missing space in urllib.request.rst (GH-19860)

This is just a typo fix, should I still provide news file?

5 years agoCosmetic smtplib changes (GH-8718)
Ville Skyttä [Sat, 23 May 2020 00:50:58 +0000 (03:50 +0300)] 
Cosmetic smtplib changes (GH-8718)

Some cosmetic smtplib changes here. Let me know if you'd like a bpo/news entry or splitting this PR into two.

Automerge-Triggered-By: @maxking
5 years agobpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992)
Antoine [Sat, 23 May 2020 00:29:34 +0000 (02:29 +0200)] 
bpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992)

* Add 'users' variable in code sample.

* 📜🤖 Added by blurb_it.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
5 years agobpo-40679: Use the function's qualname in certain TypeErrors (GH-20236)
Dennis Sweeney [Fri, 22 May 2020 20:40:17 +0000 (16:40 -0400)] 
bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236)

Patch by Dennis Sweeney.

5 years agobpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)
Chris Jerdonek [Fri, 22 May 2020 20:33:27 +0000 (13:33 -0700)] 
bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)

This updates _PyErr_ChainStackItem() to use _PyErr_SetObject()
instead of _PyErr_ChainExceptions(). This prevents a hang in
certain circumstances because _PyErr_SetObject() performs checks
to prevent cycles in the exception context chain while
_PyErr_ChainExceptions() doesn't.

5 years agobpo-9216: hashlib usedforsecurity fixes (GH-20258)
Christian Heimes [Fri, 22 May 2020 18:04:33 +0000 (20:04 +0200)] 
bpo-9216: hashlib usedforsecurity fixes (GH-20258)

func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor
``_hashlib.new()``. test_hashlib and test_smtplib handle strict security
policy better.

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran
5 years agobpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280)
Ammar Askar [Fri, 22 May 2020 16:10:55 +0000 (16:10 +0000)] 
bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280)

5 years agobpo-40730: Remove redundant 'to' (GH-20316)
Florian Dahlitz [Fri, 22 May 2020 15:19:18 +0000 (17:19 +0200)] 
bpo-40730: Remove redundant 'to' (GH-20316)

@ericvsmith I guess it is correct to merge it into master and not 3.9 directly?

Automerge-Triggered-By: @ericvsmith
5 years agoLet the argument clinic do the type checking for heapq (GH-20284)
Raymond Hettinger [Fri, 22 May 2020 14:28:57 +0000 (07:28 -0700)] 
Let the argument clinic do the type checking for heapq (GH-20284)

5 years agobpo-40630: Add tracemalloc.reset_peak (GH-20102)
Huon Wilson [Fri, 22 May 2020 14:18:51 +0000 (00:18 +1000)] 
bpo-40630: Add tracemalloc.reset_peak (GH-20102)

The reset_peak function sets the peak memory size to the current size,
representing a resetting of that metric. This allows for recording the
peak of specific sections of code, ignoring other code that may have
had a higher peak (since the most recent `tracemalloc.start()` or
tracemalloc.clear_traces()` call).

5 years agoRestore missing column of digits (GH-20313)
Raymond Hettinger [Fri, 22 May 2020 13:54:42 +0000 (06:54 -0700)] 
Restore missing column of digits (GH-20313)

5 years agoFix debug output in PEG parser generator (GH-20308)
Pablo Galindo [Fri, 22 May 2020 01:48:09 +0000 (02:48 +0100)] 
Fix debug output in PEG parser generator (GH-20308)

5 years agobpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)
Lysandros Nikolaou [Fri, 22 May 2020 00:56:52 +0000 (03:56 +0300)] 
bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)

The error message, generated for a non-parenthesized generator expression
in function calls, was still the generic `invalid syntax`, when the generator expression wasn't appearing as the first argument in the call. With this patch, even on input like `f(a, b, c for c in d, e)`, the correct error message gets produced.

5 years ago[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)
Andre Delfino [Thu, 21 May 2020 22:45:23 +0000 (19:45 -0300)] 
[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)

5 years agobpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)
Batuhan Taskaya [Thu, 21 May 2020 22:39:56 +0000 (01:39 +0300)] 
bpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
5 years agobpo-40176: Improve error messages for trailing comma on from import (GH-20294)
Batuhan Taskaya [Thu, 21 May 2020 20:41:58 +0000 (23:41 +0300)] 
bpo-40176: Improve error messages for trailing comma on from import (GH-20294)

5 years agoFix typing problems reported by mypy in pegen (GH-20297)
Pablo Galindo [Thu, 21 May 2020 20:39:44 +0000 (21:39 +0100)] 
Fix typing problems reported by mypy in pegen (GH-20297)

5 years agoReword aware/naive introduction sentence (GH-20175)
Mathieu Dupuy [Thu, 21 May 2020 20:26:27 +0000 (20:26 +0000)] 
Reword aware/naive introduction sentence (GH-20175)

This is more informative and avoids the question of whether the period should go inside or outside the quotation marks.

See also GH-20007.

5 years agobpo-40334: Correctly generate C parser when assigned var is None (GH-20296)
Batuhan Taskaya [Thu, 21 May 2020 19:57:52 +0000 (22:57 +0300)] 
bpo-40334: Correctly generate C parser when assigned var is None (GH-20296)

When there are 2 negative lookaheads in the same rule, let's say `!"(" blabla "," !")"`, there will the 2 `FunctionCall`'s where assigned value is None. Currently when the `add_var` is called
the first one will be ignored but when the second lookahead's var is sent to dedupe it
will be returned as `None_1` and this won't be ignored by the declaration generator in the `visit_Alt`. This patch adds an explicit check to `add_var` to distinguish whether if there is a variable or not.

5 years agobpo-40714: Remove compile warning from _zoneinfo.c (GH-20291)
Dong-hee Na [Thu, 21 May 2020 16:56:03 +0000 (01:56 +0900)] 
bpo-40714: Remove compile warning from _zoneinfo.c (GH-20291)

5 years agoImprove output summary in the examples and recipes section (GH-20285)
Raymond Hettinger [Thu, 21 May 2020 08:37:38 +0000 (01:37 -0700)] 
Improve output summary in the examples and recipes section (GH-20285)

5 years agobpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)
Kyle Stanley [Thu, 21 May 2020 05:20:43 +0000 (01:20 -0400)] 
bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)

Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](https://github.com/python/cpython/pull/20143#discussion_r427808225) in GH-20143 for context.

Automerge-Triggered-By: @aeros
5 years agoUse f-strings in argparse HOWTO (GH-20070)
Rémi Lapeyre [Thu, 21 May 2020 04:22:59 +0000 (06:22 +0200)] 
Use f-strings in argparse HOWTO (GH-20070)

5 years agoUpdate whatsnew benchmark results for 3.9 (GH-20276)
Raymond Hettinger [Thu, 21 May 2020 01:43:51 +0000 (18:43 -0700)] 
Update whatsnew benchmark results for 3.9 (GH-20276)

5 years agos/wakup/wakeup (GH-20250)
Kunal Bhalla [Wed, 20 May 2020 17:12:37 +0000 (13:12 -0400)] 
s/wakup/wakeup (GH-20250)

(as title)

Automerge-Triggered-By: @Mariatta
5 years agoUse v2 of GitHub Actions where available (GH-20232)
Hugo van Kemenade [Wed, 20 May 2020 16:38:41 +0000 (19:38 +0300)] 
Use v2 of GitHub Actions where available (GH-20232)

Automerge-Triggered-By: @Mariatta
5 years agobpo-40698: Improve distutils upload hash digests (GH-20260)
Christian Heimes [Wed, 20 May 2020 14:37:25 +0000 (16:37 +0200)] 
bpo-40698: Improve distutils upload hash digests (GH-20260)

- Fix upload test on systems that blocks MD5
- Add SHA2-256 and Blake2b-256 digests based on new Warehous and twine
  specs.

Signed-off-by: Christian Heimes <christian@python.org>
5 years agobpo-34956: edit and format better NEWS item in 3.9.0b1 changelog (GH-20255)
Ned Deily [Wed, 20 May 2020 09:41:26 +0000 (05:41 -0400)] 
bpo-34956: edit and format better NEWS item in 3.9.0b1 changelog (GH-20255)

5 years agoFix the URL to fishshell.com (GH-20251)
Jonathan Goble [Wed, 20 May 2020 04:59:46 +0000 (00:59 -0400)] 
Fix the URL to fishshell.com (GH-20251)

5 years agobpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248)
karl ding [Wed, 20 May 2020 02:31:49 +0000 (19:31 -0700)] 
bpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248)

This mentions the new CAN_J1939 implementation in the What's New
documentation for Python 3.9

Automerge-Triggered-By: @gvanrossum
5 years agobpo-40521: Fix update_slot() when INTERN_NAME_STRINGS is not defined (#20246)
Victor Stinner [Tue, 19 May 2020 23:57:17 +0000 (01:57 +0200)] 
bpo-40521: Fix update_slot() when INTERN_NAME_STRINGS is not defined (#20246)

Fix type update_slot() function when the macro INTERN_NAME_STRINGS is
not defined: use _PyUnicode_EQ() in this case.

5 years agobpo-40645: restrict HMAC key len to INT_MAX (GH-20238)
Christian Heimes [Tue, 19 May 2020 22:35:51 +0000 (00:35 +0200)] 
bpo-40645: restrict HMAC key len to INT_MAX (GH-20238)

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran
5 years agobpo-38870: invalid escape sequence (GH-20240)
Batuhan Taskaya [Tue, 19 May 2020 22:14:14 +0000 (01:14 +0300)] 
bpo-38870: invalid escape sequence (GH-20240)

`/home/isidentical/cpython/cpython/Lib/test/test_unparse.py:333: DeprecationWarning: invalid escape sequence \X`

Automerge-Triggered-By: @pablogsal
5 years agobpo-39631: Adds NEWS entry (GH-20227)
Steve Dower [Tue, 19 May 2020 22:10:03 +0000 (23:10 +0100)] 
bpo-39631: Adds NEWS entry (GH-20227)

5 years agobpo-32604: PEP 554 for use in test suite (GH-19985)
Joannah Nanjekye [Tue, 19 May 2020 17:20:38 +0000 (14:20 -0300)] 
bpo-32604: PEP 554 for use in test suite (GH-19985)

* PEP 554 for use in test suite

* 📜🤖 Added by blurb_it.

* Fix space

* Add doc to doc tree

* Move to modules doc tree

* Fix suspicious doc errors

* Fix test__all

* Docs docs docs

* Support isolated and fix wait

* Fix white space

* Remove undefined from __all__

* Fix recv and add exceptions

* Remove unused exceptions, fix pep 8 formatting errors and fix _NOT_SET in recv_nowait()

Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
5 years agoEnable GitHub Actions for 3.9 branch (GH-20231)
Hugo van Kemenade [Tue, 19 May 2020 17:01:32 +0000 (20:01 +0300)] 
Enable GitHub Actions for 3.9 branch (GH-20231)

5 years agobpo-37616: Handle version information more gracefully in getpath.c (GH-20214)
Pablo Galindo [Tue, 19 May 2020 16:28:05 +0000 (17:28 +0100)] 
bpo-37616: Handle version information more gracefully in getpath.c (GH-20214)

5 years agobpo-40683: Add zoneinfo to LIBSUBDIRS (#20229)
Paul Ganssle [Tue, 19 May 2020 15:55:18 +0000 (11:55 -0400)] 
bpo-40683: Add zoneinfo to LIBSUBDIRS (#20229)

Without this, only the _zoneinfo module is getting installed, not the
zoneinfo module. I believe this was not noticed earlier because
test.test_zoneinfo was also not being installed.

5 years agoFix typo in multiprocessing documentation (GH-20016)
Joe DeCapo [Tue, 19 May 2020 14:37:09 +0000 (09:37 -0500)] 
Fix typo in multiprocessing documentation (GH-20016)

5 years agoDoc: Python 3.10 in sidebar and version switcher. (GH-20209)
Julien Palard [Tue, 19 May 2020 12:26:43 +0000 (14:26 +0200)] 
Doc: Python 3.10 in sidebar and version switcher. (GH-20209)

5 years agobpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
Minmin Gong [Tue, 19 May 2020 12:22:16 +0000 (05:22 -0700)] 
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)

This allows building with older versions of the Windows SDK where the value is not defined.

5 years agobpo-39631: Fix file association MIME type in the Windows installer (GH-20205)
Zackery Spytz [Tue, 19 May 2020 12:20:39 +0000 (06:20 -0600)] 
bpo-39631: Fix file association MIME type in the Windows installer (GH-20205)

Use text/x-python instead of text/plain to avoid issues with tools assuming that "ShellExecute(script)" is a non-executable operation.

5 years ago3.10 whatsnew needs to use blurb-produced changelog (GH-20213)
Ned Deily [Tue, 19 May 2020 11:39:29 +0000 (07:39 -0400)] 
3.10 whatsnew needs to use blurb-produced changelog (GH-20213)

5 years agoConsolidate 3.9.0b1 NEWS in the master branch
Łukasz Langa [Tue, 19 May 2020 11:30:07 +0000 (13:30 +0200)] 
Consolidate 3.9.0b1 NEWS in the master branch

5 years agobpo-32309: Implement asyncio.to_thread() (GH-20143)
Kyle Stanley [Tue, 19 May 2020 03:03:28 +0000 (23:03 -0400)] 
bpo-32309: Implement asyncio.to_thread() (GH-20143)

Implements `asyncio.to_thread`, a coroutine for asynchronously running IO-bound functions in a separate thread without blocking the event loop. See the discussion starting from [here](https://github.com/python/cpython/pull/18410#issuecomment-628930973) in GH-18410 for context.

Automerge-Triggered-By: @aeros
5 years agoPython 3.10.0a0 (GH-20198)
Pablo Galindo [Tue, 19 May 2020 02:33:01 +0000 (03:33 +0100)] 
Python 3.10.0a0 (GH-20198)

5 years agoFix code-block in zoneinfo (GH-20201)
Anthony Sottile [Tue, 19 May 2020 02:02:54 +0000 (19:02 -0700)] 
Fix code-block in zoneinfo (GH-20201)

```
Warning, treated as error:
/tmp/code/Doc/library/zoneinfo.rst:303:Error in "code-block" directive:
1 argument(s) required, 0 supplied.

.. code-block::

    >>> a = ZoneInfo("Europe/Berlin")
    >>> b = pickle.loads(europe_berlin_pkl)
    >>> a is b
    True
```

5 years agobpo-40669: Use requirements.pip when installing PEG dependencies (GH-20194)
Pablo Galindo [Mon, 18 May 2020 22:37:06 +0000 (23:37 +0100)] 
bpo-40669: Use requirements.pip when installing PEG dependencies (GH-20194)

5 years agoUse _PyErr_ChainStackItem() inside gen_send_ex(). (GH-20173)
Chris Jerdonek [Mon, 18 May 2020 22:36:09 +0000 (15:36 -0700)] 
Use _PyErr_ChainStackItem() inside gen_send_ex(). (GH-20173)

_PyErr_ChainStackItem was just added in GH-19951 (for bpo-31033).

5 years agobpo-40275: More lazy imports in test.support (GH-20131)
Hai Shi [Mon, 18 May 2020 22:02:57 +0000 (06:02 +0800)] 
bpo-40275: More lazy imports in test.support (GH-20131)

Make the the following imports lazy in test.support:

* bz2
* gzip
* lzma
* resource
* zlib

The following test.support decorators now need to be called
with parenthesis:

* @support.requires_bz2
* @support.requires_gzip
* @support.requires_lzma
* @support.requires_zlib

For example, "@requires_zlib" becomes "@requires_zlib()".

5 years agoRegenerate the parser (#20195)
Pablo Galindo [Mon, 18 May 2020 21:47:51 +0000 (22:47 +0100)] 
Regenerate the parser (#20195)

5 years agobpo-38870: Don't omit parenthesis when unparsing a slice in ast.unparse
Batuhan Taskaya [Mon, 18 May 2020 20:48:49 +0000 (23:48 +0300)] 
bpo-38870: Don't omit parenthesis when unparsing a slice in ast.unparse

When unparsing a non-empty tuple, the parentheses can be safely
omitted if there aren't any elements that explicitly require them (such as starred expressions).

5 years agobpo-40334: Reproduce error message for type comments on bare '*' in the new parser...
Lysandros Nikolaou [Mon, 18 May 2020 19:14:47 +0000 (22:14 +0300)] 
bpo-40334: Reproduce error message for type comments on bare '*' in the new parser (GH-20151)

5 years agobpo-38870: correctly escape unprintable characters on ast.unparse (GH-20166)
CyberSaxosTiGER [Mon, 18 May 2020 18:41:35 +0000 (21:41 +0300)] 
bpo-38870: correctly escape unprintable characters on ast.unparse (GH-20166)

Unprintable characters such as `\x00` weren't correctly roundtripped
due to not using default string repr when generating docstrings. This
patch correctly encodes all unprintable characters (except `\n` and `\t`, which
are commonly used for formatting, and found unescaped).

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
5 years agobpo-40669: Install PEG benchmarking dependencies in a venv (GH-20183)
Lysandros Nikolaou [Mon, 18 May 2020 18:27:40 +0000 (21:27 +0300)] 
bpo-40669: Install PEG benchmarking dependencies in a venv (GH-20183)

Create a `make venv` target, that creates a virtual environment
and installs the dependency in that venv. `make time` and all
the related targets are changed to use the virtual environment
python.

Automerge-Triggered-By: @pablogsal
5 years agobpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156)
Batuhan Taskaya [Mon, 18 May 2020 18:23:48 +0000 (21:23 +0300)] 
bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156)

5 years agobpo-40662: Fixed ast.get_source_segment for ast nodes that have incomplete location...
Irit Katriel [Mon, 18 May 2020 18:14:12 +0000 (19:14 +0100)] 
bpo-40662: Fixed ast.get_source_segment for ast nodes that have incomplete location information (GH-20157)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40528: Improve AST generation script to do builds simultaneously (GH-19968)
Batuhan Taskaya [Mon, 18 May 2020 17:42:10 +0000 (20:42 +0300)] 
bpo-40528: Improve AST generation script to do builds simultaneously (GH-19968)

- Switch from getopt to argparse.
- Removed the limitation of not being able to produce both C and H simultaneously.

This will make it run faster since it parses the asdl definition once and uses the generated tree to generate both the header and the C source.

5 years agobpo-40661: Fix segfault when parsing invalid input (GH-20165)
Lysandros Nikolaou [Mon, 18 May 2020 17:32:03 +0000 (20:32 +0300)] 
bpo-40661: Fix segfault when parsing invalid input (GH-20165)

Fix segfaults when parsing very complex invalid input, like `import äˆ ð£„¯ð¢·žð±‹á”€ð””ð‘©±å®ä±¬ð©¾\nð—¶½`.

Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
5 years agobpo-40257: Revert changes to inspect.getdoc() (GH-20073)
Serhiy Storchaka [Mon, 18 May 2020 17:25:07 +0000 (20:25 +0300)] 
bpo-40257: Revert changes to inspect.getdoc() (GH-20073)

5 years agobpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)
Minmin Gong [Mon, 18 May 2020 16:50:03 +0000 (09:50 -0700)] 
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)

5 years agobpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)
Minmin Gong [Mon, 18 May 2020 16:22:53 +0000 (09:22 -0700)] 
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)

5 years agobpo-40653: Move _dirnameW out of #ifdef HAVE_SYMLINK/#endif (GH-20144)
Minmin Gong [Mon, 18 May 2020 16:17:19 +0000 (09:17 -0700)] 
bpo-40653: Move _dirnameW out of #ifdef HAVE_SYMLINK/#endif (GH-20144)

5 years agoRevert "bpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176...
Ned Deily [Mon, 18 May 2020 15:31:21 +0000 (11:31 -0400)] 
Revert "bpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176)" (GH-20182)

This reverts commit 0da546665075aefbb476e192ed64122d340164f4.

The commit is causing make failures on a FreeBSD buildbot.
Due to the imminent 3.9.0b1 cutoff, revert this commit for
now pending further investigation.

5 years agobpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt level...
Lumír 'Frenzy' Balhar [Mon, 18 May 2020 13:23:37 +0000 (15:23 +0200)] 
bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt levels (GH-20174)

5 years agobpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176)
Ned Deily [Mon, 18 May 2020 13:17:22 +0000 (09:17 -0400)] 
bpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176)

Add support to the configure script for OBJC and OBJCXX command line options so that the macOS builds can use the clang compiler for the macOS-specific Objective C source files. This allows third-party compilers, like GNU gcc, to be used to build the rest of the project since some of the Objective C system header files are not compilable by GNU gcc.

Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
Filipe Laíns [Mon, 18 May 2020 12:52:45 +0000 (13:52 +0100)] 
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)

Signed-off-by: Filipe Laíns <lains@archlinux.org>
5 years agobpo-34956: Fix macOS _tkinter use of Tcl/Tk in /Library/Frameworks (GH-20171)
Ned Deily [Mon, 18 May 2020 08:32:38 +0000 (04:32 -0400)] 
bpo-34956: Fix macOS _tkinter use of Tcl/Tk in /Library/Frameworks (GH-20171)

_tkinter now builds and links with non-system Tcl and Tk frameworks if they
are installed in /Library/Frameworks as had been the case on older releases
of macOS. If a macOS SDK is explicitly configured, by using ./configure
--enable-universalsdk= or -isysroot, only a Library/Frameworks directory in
the SDK itself is searched. The default behavior can still be overridden with
configure --with-tcltk-includes and --with-tcltk-libs.

5 years agobpo-39148: fixup to account for IPV6_ENABLED being moved (GH-20170)
Nathaniel J. Smith [Mon, 18 May 2020 07:56:47 +0000 (00:56 -0700)] 
bpo-39148: fixup to account for IPV6_ENABLED being moved (GH-20170)

5 years agobpo-39148: enable ipv6 for datagrams in Proactor (GH-19121)
Kjell Braden [Mon, 18 May 2020 06:21:30 +0000 (08:21 +0200)] 
bpo-39148: enable ipv6 for datagrams in Proactor (GH-19121)

Ifdef is not necessary, as AF_INET6 is supported from Windows Vista, and other code in overlapped.c uses AF_INET6 and is not ifdef'd.
Change the raised exception so users are not fooled to think it comes from Windows API.

Automerge-Triggered-By: @njsmith
5 years agobpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951)
Chris Jerdonek [Mon, 18 May 2020 05:47:31 +0000 (22:47 -0700)] 
bpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951)

When an asyncio.Task is cancelled, the exception traceback now
starts with where the task was first interrupted.  Previously,
the traceback only had "depth one."

5 years agobpo-13601: Mention stderr's line buffering in What's New (GH-20168)
Shantanu [Mon, 18 May 2020 05:07:57 +0000 (22:07 -0700)] 
bpo-13601: Mention stderr's line buffering in What's New (GH-20168)

5 years agobpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#20139)
qudongfang [Mon, 18 May 2020 03:50:51 +0000 (04:50 +0100)] 
bpo-40651: Improve LRU recipe in the OrderedDict documentation  (GH-#20139)

5 years agobpo-40665: Use Argument Clinic for the bisect module (GH-20163)
Shantanu [Mon, 18 May 2020 03:38:35 +0000 (20:38 -0700)] 
bpo-40665: Use Argument Clinic for the bisect module (GH-20163)

5 years agobpo-40536: Add zoneinfo.available_timezones (GH-20158)
Paul Ganssle [Mon, 18 May 2020 01:55:11 +0000 (21:55 -0400)] 
bpo-40536: Add zoneinfo.available_timezones (GH-20158)

This was not specified in the PEP, but it will likely be a frequently requested feature if it's not included.

This includes only the "canonical" zones, not a simple listing of every valid value of `key` that can be passed to `Zoneinfo`, because it seems likely that that's what people will want.

5 years agobpo-39058: Preserve attribute order in argparse Namespace reprs. (GH-17621)
Raymond Hettinger [Mon, 18 May 2020 01:53:01 +0000 (18:53 -0700)] 
bpo-39058:  Preserve attribute order in argparse Namespace reprs. (GH-17621)

5 years agobpo-39705 : sorted() tutorial example under looping techniques improved (GH-18999)
Rahul Kumaresan [Mon, 18 May 2020 01:32:34 +0000 (07:02 +0530)] 
bpo-39705 : sorted() tutorial example under looping techniques improved (GH-18999)

5 years agoDoc: change 'Posix' for 'POSIX' (GH-20001)
Mathieu Dupuy [Sun, 17 May 2020 21:29:51 +0000 (21:29 +0000)] 
Doc: change 'Posix' for 'POSIX' (GH-20001)

5 years agoDoc: move a dot outside double quotes (GH-20007)
Mathieu Dupuy [Sun, 17 May 2020 21:24:59 +0000 (21:24 +0000)] 
Doc: move a dot outside double quotes (GH-20007)

5 years agobpo-37630: Fix spelling shake128 -> shake_128 (GH-20154)
Christian Heimes [Sun, 17 May 2020 16:32:38 +0000 (18:32 +0200)] 
bpo-37630: Fix spelling shake128 -> shake_128 (GH-20154)

5 years agobpo-40645: Implement HMAC in C (GH-20129)
Christian Heimes [Sun, 17 May 2020 11:49:10 +0000 (13:49 +0200)] 
bpo-40645: Implement HMAC in C (GH-20129)

The internal module ``_hashlib`` wraps and exposes OpenSSL's HMAC API. The
new code will be used in Python 3.10 after the internal implementation
details of the pure Python HMAC module are no longer part of the public API.

The code is based on a patch by Petr Viktorin for RHEL and Python 3.6.

Co-Authored-By: Petr Viktorin <encukou@gmail.com>
5 years agobpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
Zackery Spytz [Sun, 17 May 2020 10:52:47 +0000 (04:52 -0600)] 
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)

Patch by Zackery Spytz.

5 years agobpo-35569: add Erlend to Misc/ACKS (GH-20146)
Ned Deily [Sun, 17 May 2020 06:57:25 +0000 (02:57 -0400)] 
bpo-35569: add Erlend to Misc/ACKS (GH-20146)

5 years agobpo-35569: Expose RFC 3542 IPv6 socket options on macOS (GH-19526)
Erlend Egeberg Aasland [Sun, 17 May 2020 06:32:46 +0000 (08:32 +0200)] 
bpo-35569: Expose RFC 3542 IPv6 socket options on macOS (GH-19526)

5 years agobpo-29587: Add another test for the gen.throw() fix. (GH-19859)
Chris Jerdonek [Sun, 17 May 2020 04:14:48 +0000 (21:14 -0700)] 
bpo-29587: Add another test for the gen.throw() fix. (GH-19859)

5 years agobpo-40334: Improvements to error-handling code in the PEG parser (GH-20003)
Lysandros Nikolaou [Sun, 17 May 2020 03:19:23 +0000 (06:19 +0300)] 
bpo-40334: Improvements to error-handling code in the PEG parser (GH-20003)

The following improvements are implemented in this commit:
- `p->error_indicator` is set, in case malloc or realloc fail.
- Avoid memory leaks in the case that realloc fails.
- Call `PyErr_NoMemory()` instead of `PyErr_Format()`, because it requires no memory.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-38870: Use subTest in test_unparse for better error reporting (GH-20141)
Pablo Galindo [Sun, 17 May 2020 02:53:57 +0000 (03:53 +0100)] 
bpo-38870: Use subTest in test_unparse for better error reporting (GH-20141)

5 years agoUse subTest in test_exceptions for better error reporting (GH-20140)
Pablo Galindo [Sun, 17 May 2020 00:22:00 +0000 (01:22 +0100)] 
Use subTest in test_exceptions for better error reporting (GH-20140)

5 years agobpo-40645: Deprecated internal details of hmac.HMAC (GH-20132)
Christian Heimes [Sat, 16 May 2020 23:05:40 +0000 (01:05 +0200)] 
bpo-40645: Deprecated internal details of hmac.HMAC (GH-20132)

5 years agobpo-38870: Implement round tripping support for typed AST in ast.unparse (GH-17797)
Batuhan Taskaya [Sat, 16 May 2020 23:04:12 +0000 (02:04 +0300)] 
bpo-38870: Implement round tripping support for typed AST in ast.unparse (GH-17797)

5 years agobpo-38870: Correctly handle empty docstrings in ast.unparse (GH-18768)
Batuhan Taskaya [Sat, 16 May 2020 22:49:07 +0000 (01:49 +0300)] 
bpo-38870: Correctly handle empty docstrings in ast.unparse (GH-18768)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40165: Suppress stderr when checking if test_stty_match should be skipped (GH...
Batuhan Taskaya [Sat, 16 May 2020 22:38:02 +0000 (01:38 +0300)] 
bpo-40165: Suppress stderr when checking if test_stty_match should be skipped (GH-19325)

5 years agobpo-40211: Clarify os.preadv and os.pwritev are supported on AIX 7.1+ (GH-19401)
Batuhan Taskaya [Sat, 16 May 2020 22:36:40 +0000 (01:36 +0300)] 
bpo-40211: Clarify os.preadv and os.pwritev are supported on AIX 7.1+ (GH-19401)

5 years agobpo-39740: Early declare devpoll_methods to support old compilers (GH-19281)
Batuhan Taskaya [Sat, 16 May 2020 22:36:14 +0000 (01:36 +0300)] 
bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281)

5 years agobpo-38870: Don't put unnecessary parentheses on class declarations in ast.parse ...
Batuhan Taskaya [Sat, 16 May 2020 21:53:25 +0000 (00:53 +0300)] 
bpo-38870: Don't put unnecessary parentheses on class declarations in ast.parse (GH-20134)