]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-43427: Separte the method overview from the static method specifics. (GH-24787)
Raymond Hettinger [Sat, 13 Mar 2021 21:46:32 +0000 (13:46 -0800)] 
bpo-43427:  Separte the method overview from the static method specifics. (GH-24787)

4 years agobpo-43428: Sync with importlib_metadata 3.7. (GH-24782)
Jason R. Coombs [Sat, 13 Mar 2021 16:31:45 +0000 (11:31 -0500)] 
bpo-43428: Sync with importlib_metadata 3.7. (GH-24782)

* bpo-43428: Sync with importlib_metadata 3.7.2 (67234b6)

* Add blurb

* Reformat blurb to create separate paragraphs for each change included.

4 years agobpo-43444: Move sqlite3 MODULE_NAME from setup.py to module.h (GH-24801)
Erlend Egeberg Aasland [Sat, 13 Mar 2021 15:33:39 +0000 (16:33 +0100)] 
bpo-43444: Move sqlite3 MODULE_NAME from setup.py to module.h (GH-24801)

4 years agobpo-43441: Fix _PyType_ClearCache() for subinterpreters (GH-24822)
junyixie [Sat, 13 Mar 2021 13:38:36 +0000 (21:38 +0800)] 
bpo-43441: Fix _PyType_ClearCache() for subinterpreters (GH-24822)

_PyType_ClearCache() now only resets next_version_tag in the main interpreter.

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-40521: Make dtoa bigint free list per-interpreter (GH-24821)
junyixie [Sat, 13 Mar 2021 13:25:14 +0000 (21:25 +0800)] 
bpo-40521: Make dtoa bigint free list per-interpreter (GH-24821)

4 years agoUpdate link to Django's Context class. (#24805)
Mariusz Felisiak [Sat, 13 Mar 2021 12:26:11 +0000 (13:26 +0100)] 
Update link to Django's Context class. (#24805)

* Update link to Django's Context class.
* Update link to get-pip.py.

4 years agoUpdate client.py (GH-24827)
Géry Ogam [Sat, 13 Mar 2021 12:22:03 +0000 (13:22 +0100)] 
Update client.py (GH-24827)

4 years agobpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118)
Pandu E POLUAN [Fri, 12 Mar 2021 23:25:49 +0000 (06:25 +0700)] 
bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118)

* Fix auth_login logic (bpo-27820)

* Also fix a longstanding bug in the SimSMTPChannel.found_terminator() method that causes inability to test
SMTP AUTH with initial_response_ok=False.

4 years agobpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Antoine Pitrou [Thu, 11 Mar 2021 22:35:45 +0000 (23:35 +0100)] 
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)

Also introduce a new C API ``PyErr_SetInterruptEx(int signum)``.

4 years agobpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)
Chris Griffith [Thu, 11 Mar 2021 19:43:29 +0000 (13:43 -0600)] 
bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)

Check to make sure stdout and stderr are not empty before selecting an item from them in Windows subprocess._communicate.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-43311: Create GIL autoTSSkey ealier (GH-24819)
Victor Stinner [Wed, 10 Mar 2021 19:00:46 +0000 (20:00 +0100)] 
bpo-43311: Create GIL autoTSSkey ealier (GH-24819)

At Python startup, call _PyGILState_Init() before
PyInterpreterState_New() which calls _PyThreadState_GET(). When
Python is built using --with-experimental-isolated-subinterpreters,
_PyThreadState_GET() uses autoTSSkey.

4 years agobpo-43287: Use PEP 590 vectorcall to speed up filter() (GH-24611)
Dong-hee Na [Wed, 10 Mar 2021 16:39:52 +0000 (01:39 +0900)] 
bpo-43287: Use PEP 590 vectorcall to speed up filter() (GH-24611)

4 years agoFix error in documentation for ast.match_case (GH-24807)
Adrian Freund [Wed, 10 Mar 2021 15:58:31 +0000 (16:58 +0100)] 
Fix error in documentation for ast.match_case (GH-24807)

4 years agobpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815)
Victor Stinner [Wed, 10 Mar 2021 14:26:45 +0000 (15:26 +0100)] 
bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815)

Fix a race condition of test_stress_modifying_handlers() of
test_signal: only raise signals while we are in the
catch_unraisable_exception() context manager.
Moreover, don't check if we received at least one
signal if at least one signal got ignored.

4 years agobpo-43456: Remove _xxsubinterpreters from sys.stdlib_module_names (GH-24814)
Victor Stinner [Wed, 10 Mar 2021 11:10:01 +0000 (12:10 +0100)] 
bpo-43456: Remove _xxsubinterpreters from sys.stdlib_module_names (GH-24814)

4 years agoFix typo in compile.c (GH-24812)
Ikko Ashimine [Wed, 10 Mar 2021 10:39:51 +0000 (19:39 +0900)] 
Fix typo in compile.c (GH-24812)

guranteed -> guaranteed

4 years agobpo-43445: Add frozen modules to sys.stdlib_module_names (GH-24798)
Victor Stinner [Wed, 10 Mar 2021 10:14:07 +0000 (11:14 +0100)] 
bpo-43445: Add frozen modules to sys.stdlib_module_names (GH-24798)

Add frozen modules to sys.stdlib_module_names. For example, add
"_frozen_importlib" and "_frozen_importlib_external" names.

Add "list_frozen" command to Programs/_testembed.

4 years agobpo-43439: Add audit hooks for gc functions (GH-24794)
Pablo Galindo [Wed, 10 Mar 2021 00:53:57 +0000 (00:53 +0000)] 
bpo-43439: Add audit hooks for gc functions (GH-24794)

4 years agobpo-43446: Fix markup in sqlite3 footnote (GH-24806)
Kamil Turek [Tue, 9 Mar 2021 23:41:41 +0000 (00:41 +0100)] 
bpo-43446: Fix markup in sqlite3 footnote (GH-24806)

4 years agobpo-43440 : Enable SQLite R*Tree support for windows builds (GH-24797)
Erlend Egeberg Aasland [Tue, 9 Mar 2021 20:59:44 +0000 (21:59 +0100)] 
bpo-43440 : Enable SQLite R*Tree support for windows builds (GH-24797)

4 years agobpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)
Victor Stinner [Tue, 9 Mar 2021 11:16:42 +0000 (12:16 +0100)] 
bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)

4 years agobpo-43415: Fix typo on dataclasses.rst (#24789)
Guilherme Martins Crocetti [Mon, 8 Mar 2021 22:50:39 +0000 (19:50 -0300)] 
bpo-43415: Fix typo on dataclasses.rst (#24789)

4 years agobpo-37146: Move _PyEval_DeactivateOpCache() to the internal C API (GH-24786)
Victor Stinner [Mon, 8 Mar 2021 21:56:37 +0000 (22:56 +0100)] 
bpo-37146: Move _PyEval_DeactivateOpCache() to the internal C API (GH-24786)

Don't export the symbol anymore.

4 years agobpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159)
Desmond Cheong [Mon, 8 Mar 2021 20:06:02 +0000 (04:06 +0800)] 
bpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159)

Added an invalidate_caches() method to the zipimport.zipimporter class based on the implementation of importlib.FileFinder.invalidate_caches(). This was done by adding a get_files() method and an _archive_mtime attribute to zipimport.zipimporter to check for updates or cache invalidation whenever the cache of files and toc entry information in the zipimporter is accessed.

4 years agobpo-43353: Document that logging.getLevelName() accepts string representation of...
Mariusz Felisiak [Mon, 8 Mar 2021 11:16:20 +0000 (12:16 +0100)] 
bpo-43353: Document that logging.getLevelName() accepts string representation of logging level. (GH-24693)

[bpo-43353]()

Automerge-Triggered-By: GH:vsajip
4 years agobpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)
Gregory P. Smith [Mon, 8 Mar 2021 07:35:13 +0000 (23:35 -0800)] 
bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)

We now buffer the CONNECT request + tunnel HTTP headers into a single
send call.  This prevents the OS from generating multiple network
packets for connection setup when not necessary, improving efficiency.

4 years agobpo-43319: Fixed the tutorial on venv about standard library (GH-24740)
cmhzc [Sun, 7 Mar 2021 09:08:50 +0000 (17:08 +0800)] 
bpo-43319: Fixed the tutorial on venv about standard library (GH-24740)

In the [official tutorial on virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments)

> This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, **the standard library**, and various supporting files.

According to the actual behavior of `venv` and [PEP 405](https://www.python.org/dev/peps/pep-0405/#id15)'s description about virtual environment, no standard library file is included in the virtual environment's directory.

Automerge-Triggered-By: GH:vsajip
4 years agobpo-43405: Fix DeprecationWarnings in test_unicode (GH-24754)
Zackery Spytz [Sun, 7 Mar 2021 06:12:35 +0000 (23:12 -0700)] 
bpo-43405: Fix DeprecationWarnings in test_unicode (GH-24754)

DeprecationWarnings were being raised in the test_encode_decimal()
and test_transform_decimal() methods after 91a639a0949.

4 years agobpo-43372: Use _freeze_importlib for regen-frozen. (GH-24759)
Neil Schemenauer [Sat, 6 Mar 2021 21:34:03 +0000 (13:34 -0800)] 
bpo-43372: Use _freeze_importlib for regen-frozen. (GH-24759)

This approach ensures the code matches the interpreter version.
Previously, PYTHON_FOR_REGEN was used to generate the code, which might
be wrong. The marshal format for code objects has changed with
bpo-42246, commit 877df851. Update the code and the expected code sizes
in ctypes test_frozentable.

4 years agoPut contextvars docs into the concurrency category (GH-24760)
Brett Cannon [Sat, 6 Mar 2021 16:25:54 +0000 (08:25 -0800)] 
Put contextvars docs into the concurrency category (GH-24760)

4 years agobpo-43407: Clarify comparisons of time.monotonic() et al results (GH-24757)
Alex Willmer [Sat, 6 Mar 2021 01:22:13 +0000 (01:22 +0000)] 
bpo-43407: Clarify comparisons of time.monotonic() et al results (GH-24757)

Previous wording implied that only the result of call N and N+1 could be
meaningfully compared, whereas comparing call N and N+M is fine.

4 years agoMake tracing info (bounds, and previous instruction offset) a bit more robust. (GH...
Mark Shannon [Fri, 5 Mar 2021 14:45:50 +0000 (14:45 +0000)] 
Make tracing info (bounds, and previous instruction offset) a bit more robust. (GH-24726)

4 years agobpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to execute...
Antoine Pitrou [Fri, 5 Mar 2021 09:32:50 +0000 (10:32 +0100)] 
bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to execute a non-Python signal handler (GH-24756)

We can receive signals (at the C level, in `trip_signal()` in signalmodule.c) while `signal.signal` is being called to modify the corresponding handler.  Later when `PyErr_CheckSignals()` is called to handle the given signal, the handler may be a non-callable object and would raise a cryptic asynchronous exception.

4 years agobpo-43390: Set SA_ONSTACK in PyOS_setsig (GH-24730)
Gregory P. Smith [Fri, 5 Mar 2021 05:49:30 +0000 (21:49 -0800)] 
bpo-43390: Set SA_ONSTACK in PyOS_setsig (GH-24730)

This is friendlier to other in-process code that an extension module or
embedding use could pull in such as CGo where tiny stacks are the norm
and sigaltstack() has been used to provide for signal handlers.

Without this, signals received by a process using tiny stacks may lead
to stack overflow crashes.

4 years agobpo-43400: Remove "easy to use" from mock docs (GH-24752)
Eddie Peters [Thu, 4 Mar 2021 23:39:29 +0000 (18:39 -0500)] 
bpo-43400: Remove "easy to use" from mock docs (GH-24752)

4 years agobpo-42129: Add support for resources in namespaces (GH-24670)
Jason R. Coombs [Thu, 4 Mar 2021 18:43:00 +0000 (13:43 -0500)] 
bpo-42129: Add support for resources in namespaces (GH-24670)

* Unify behavior in ResourceReaderDefaultsTests and align with the behavior found in importlib_resources.
* Equip NamespaceLoader with a NamespaceReader.
* Apply changes from importlib_resources 5.0.4

4 years agoRevert "bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)" (#24753)
Jason R. Coombs [Thu, 4 Mar 2021 18:41:49 +0000 (13:41 -0500)] 
Revert "bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)" (#24753)

This reverts commit cb7bc7640935f6b05e9d2acfe4b33d496e8f8666.

4 years agobpo-43391: Remove the broken Python 2.4 link from the comment (GH-24736)
Kamil Turek [Thu, 4 Mar 2021 18:24:42 +0000 (19:24 +0100)] 
bpo-43391: Remove the broken Python 2.4 link from the comment (GH-24736)

4 years agobpo-42405: fix C extensions build on Windows ARM64 (GH-23399)
Adrian Vladu [Thu, 4 Mar 2021 16:59:12 +0000 (18:59 +0200)] 
bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)

The following changes are required:

      * add a new platform win-arm64
      * replace the emulated compiler executable paths
      * bump the linker base addressed as ARM64 requires more memory
        this change might not be needed (investigation required)

    On Windows 10 ARM64, VS compiler paths look like this:
    C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\ARM64\cl.exe

    Note that the cl.exe for ARM64 is an x32 binary, which can run emulated
    on Windows 10 ARM64 (it has builtin emulation for x32).

    The rc.exe and mc.exe paths have to also be changed, as the initial
    discovery has to be fixed.

    Work in progress to remove the hardcoded bits and to change the path
    query fixes to the proper location.

Automerge-Triggered-By: GH:jaraco
4 years agobpo-43396: Normalise naming in sqlite3 doc examples (GH-24746)
Erlend Egeberg Aasland [Thu, 4 Mar 2021 15:46:14 +0000 (16:46 +0100)] 
bpo-43396: Normalise naming in sqlite3 doc examples (GH-24746)

4 years agobpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723)
Erlend Egeberg Aasland [Thu, 4 Mar 2021 09:50:25 +0000 (10:50 +0100)] 
bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723)

4 years agobpo-43394: Fix -Wstrict-prototypes warnings (GH-24737)
Brandt Bucher [Thu, 4 Mar 2021 05:53:59 +0000 (21:53 -0800)] 
bpo-43394: Fix -Wstrict-prototypes warnings (GH-24737)

4 years agobpo-43271: Re-enable ceval.c optimizations for Windows debug builds (GH-24739)
db3l [Thu, 4 Mar 2021 03:09:48 +0000 (22:09 -0500)] 
bpo-43271: Re-enable ceval.c optimizations for Windows debug builds (GH-24739)

Partially reverts commit b74396c3167cc780f01309148db02709bc37b432

The optimizations are necessary to prevent the interpreter from
crashing in a number of tests involving recursion.

4 years agoImprove the description of the improvements in bpo-42202 (GH-24738)
Pablo Galindo [Thu, 4 Mar 2021 01:29:29 +0000 (01:29 +0000)] 
Improve the description of the improvements in bpo-42202 (GH-24738)

4 years agobpo-42128: Add __match_args__ to structseq-based classes (GH-24732)
Pablo Galindo [Thu, 4 Mar 2021 00:03:44 +0000 (00:03 +0000)] 
bpo-42128: Add __match_args__ to structseq-based classes (GH-24732)

4 years agobpo-40701: tempfile mixes str and bytes in an inconsistent manner (GH-20442)
Eric L [Wed, 3 Mar 2021 20:36:22 +0000 (21:36 +0100)] 
bpo-40701: tempfile mixes str and bytes in an inconsistent manner (GH-20442)

The case of tempfile.tempdir variable being bytes is now handled consistently.
The getters return the right type and no more error of mixing str and bytes unless explicitly caused by the user.

Adds a regression test.

Expands the documentation to clarify the behavior.

Co-authored-by: Eric L <ewl+git@lavar.de>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoAdd an attribution to the Green Tree Snakes in the AST docs (GH-24727)
Pablo Galindo [Wed, 3 Mar 2021 18:25:41 +0000 (18:25 +0000)] 
Add an attribution to the Green Tree Snakes in the AST docs (GH-24727)

4 years agobpo-43162: [Enum] update docs, renable doc tests (GH-24487)
Ethan Furman [Wed, 3 Mar 2021 17:54:30 +0000 (09:54 -0800)] 
bpo-43162: [Enum] update docs, renable doc tests (GH-24487)

* update docs, renable doc tests
* make deprecation warning active for two releases

4 years agobpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627)
Noor Michael [Wed, 3 Mar 2021 16:58:57 +0000 (10:58 -0600)] 
bpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627)

Previously, `datetime.strptime` would match `'z'` with the format string `'%z'` (for UTC offsets), throwing an `IndexError` by erroneously trying to parse `'z'` as a timestamp. As a special case, `'%z'` matches the string `'Z'` which is equivalent to the offset `'+00:00'`, however this behavior is not defined for lowercase `'z'`.

This change ensures a `ValueError` is thrown when encountering the original example, as follows:

```
>>> from datetime import datetime
>>> datetime.strptime('z', '%z')
ValueError: time data 'z' does not match format '%z'
```

Automerge-Triggered-By: GH:pganssle
4 years agobpo-43368: Fix fetching empty bytes in sqlite3 (GH-24706)
Mariusz Felisiak [Wed, 3 Mar 2021 14:16:24 +0000 (15:16 +0100)] 
bpo-43368: Fix fetching empty bytes in sqlite3 (GH-24706)

Regression introduced in 47feb1feb28631b6647699b7633109aa85340966.

4 years agomissing multiply symbol in the documentation (GH-24686)
Alperen Serkan Aksöz [Wed, 3 Mar 2021 13:59:52 +0000 (16:59 +0300)] 
missing multiply symbol in the documentation (GH-24686)

4 years agoDoc: typo fix. (GH-24721)
Julien Palard [Wed, 3 Mar 2021 10:32:12 +0000 (11:32 +0100)] 
Doc: typo fix. (GH-24721)

4 years agoPin test runner to Ubuntu 18 to un-break CI (#24715)
Brandt Bucher [Wed, 3 Mar 2021 07:03:55 +0000 (23:03 -0800)] 
Pin test runner to Ubuntu 18 to un-break CI (#24715)

4 years agoReorder contents of 3.10's What's New (#24687)
Ken Jin [Wed, 3 Mar 2021 00:52:03 +0000 (08:52 +0800)] 
Reorder contents of 3.10's What's New (#24687)

4 years agobpo-42994: Add MIME types for opus, AAC, 3gpp and 3gpp2 (#24287)
Nathan Beals [Wed, 3 Mar 2021 00:20:18 +0000 (19:20 -0500)] 
bpo-42994: Add MIME types for opus, AAC, 3gpp and 3gpp2 (#24287)

Co-authored-by: Nathan Beals <ndbeals@users.noreply.github.com>
4 years agobpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)
Winson Luk [Tue, 2 Mar 2021 20:53:15 +0000 (15:53 -0500)] 
bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)

* Fail fast in shutil.move() to avoid creating destination directories on failure.

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-43049: Use io.IncrementalNewlineDecoder for doctest newline conversion (GH-24359)
Peter Donis [Tue, 2 Mar 2021 17:06:20 +0000 (12:06 -0500)] 
bpo-43049: Use io.IncrementalNewlineDecoder for doctest newline conversion (GH-24359)

Followup to bpo-1812 and GH-17385.

4 years agobpo-43358: Fix bad free in assemble function (GH-24697)
Alex Henrie [Tue, 2 Mar 2021 10:20:25 +0000 (03:20 -0700)] 
bpo-43358: Fix bad free in assemble function (GH-24697)

4 years agobpo-39523: Use do-while loop pysqlite_cursor_executescript() (GH-18305)
Alex Henrie [Tue, 2 Mar 2021 07:40:34 +0000 (00:40 -0700)] 
bpo-39523: Use do-while loop pysqlite_cursor_executescript() (GH-18305)

4 years agobpo-41282: distutils: Fix stacklevel for DeprecationWarning (GH-24657)
Inada Naoki [Tue, 2 Mar 2021 02:49:10 +0000 (11:49 +0900)] 
bpo-41282: distutils: Fix stacklevel for DeprecationWarning (GH-24657)

DeprecationWarning is emit for `import distutils`, not for `distutils` itself.

4 years agoDoc: Improve library/json document. (GH-24390)
Adorilson Bezerra [Tue, 2 Mar 2021 01:51:58 +0000 (22:51 -0300)] 
Doc: Improve library/json document. (GH-24390)

4 years agobpo-42840: Document providing kwargs to type. (#24173)
Erik Soma [Mon, 1 Mar 2021 23:21:04 +0000 (18:21 -0500)] 
bpo-42840: Document providing kwargs to type. (#24173)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agoFixed linenumber missing when audit hook has an error (GH-24692)
Jules Lasne [Mon, 1 Mar 2021 21:59:58 +0000 (22:59 +0100)] 
Fixed linenumber missing when audit hook has an error (GH-24692)

See https://github.com/sphinx-doc/sphinx/issues/8932

Co-authored-by: tk0miya <i.tkomiya@gmail.com>
4 years agoPost 3.10.0a6
Pablo Galindo [Mon, 1 Mar 2021 19:42:28 +0000 (19:42 +0000)] 
Post 3.10.0a6

4 years agoMerge tag 'v3.10.0a6'
Pablo Galindo [Mon, 1 Mar 2021 19:41:45 +0000 (19:41 +0000)] 
Merge tag 'v3.10.0a6'

Python 3.10.0a6

4 years agoFix grammar in enum documentation. (GH-24689)
Mariatta Wijaya [Mon, 1 Mar 2021 18:56:03 +0000 (10:56 -0800)] 
Fix grammar in enum documentation. (GH-24689)

There is an extra `s` in the singular word `method`.
Reported in docs mailing list by Steven Nguyen.

Automerge-Triggered-By: GH:Mariatta
4 years agoRemove unused suspicious rule in the docs v3.10.0a6
Pablo Galindo [Mon, 1 Mar 2021 16:47:53 +0000 (16:47 +0000)] 
Remove unused suspicious rule in the docs

4 years agoPython 3.10.0a6
Pablo Galindo [Mon, 1 Mar 2021 16:45:40 +0000 (16:45 +0000)] 
Python 3.10.0a6

4 years agoFix typo in Mac/README.rst (#24682)
Ikko Ashimine [Mon, 1 Mar 2021 16:11:23 +0000 (01:11 +0900)] 
Fix typo in Mac/README.rst (#24682)

targetting -> targeting

4 years agocloses bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680)
Erlend Egeberg Aasland [Mon, 1 Mar 2021 14:44:46 +0000 (15:44 +0100)] 
closes bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680)

4 years agobpo-11717: fix ssize_t redefinition error when targeting 32bit Windows app (GH-24479)
Jozef Grajciar [Mon, 1 Mar 2021 11:18:33 +0000 (12:18 +0100)] 
bpo-11717: fix ssize_t redefinition error when targeting 32bit Windows app (GH-24479)

4 years agobpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677)
Ned Deily [Mon, 1 Mar 2021 07:39:08 +0000 (02:39 -0500)] 
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677)

4 years agobpo-43103: Fix build failure with macOS framework builds. (GH-24676)
Ned Deily [Mon, 1 Mar 2021 07:04:02 +0000 (02:04 -0500)] 
bpo-43103: Fix build failure with macOS framework builds. (GH-24676)

4 years agobpo-42603: Add whatsnew and ACKS entries. (GH-24675)
Ned Deily [Mon, 1 Mar 2021 05:27:20 +0000 (00:27 -0500)] 
bpo-42603: Add whatsnew and ACKS entries. (GH-24675)

4 years agobpo-42128: Add documentation for pattern matching (PEP 634) (#24664)
Daniel F Moisset [Mon, 1 Mar 2021 04:08:38 +0000 (04:08 +0000)] 
bpo-42128: Add documentation for pattern matching (PEP 634) (#24664)

This is a first edition, ready to go out with the implementation. We'll iterate during the rest of the period leading up to 3.10.0.

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Raymond Hettinger <1623689+rhettinger@users.noreply.github.com>
Co-authored-by: Guido van Rossum <guido@python.org>
4 years agobpo-42603: Use pkg-config to get TCL/TK paths for tkinter. (GH-23721)
Manolis Stamatogiannakis [Mon, 1 Mar 2021 03:29:57 +0000 (04:29 +0100)] 
bpo-42603: Use pkg-config to get TCL/TK paths for tkinter. (GH-23721)

4 years agobpo-42128: Add documentation for the new match-based AST nodes (GH-24673)
Pablo Galindo [Mon, 1 Mar 2021 02:08:37 +0000 (02:08 +0000)] 
bpo-42128: Add documentation for the new match-based AST nodes (GH-24673)

* bpo-42128: Add documentation for the new match-based AST nodes

* Update Doc/library/ast.rst

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* Fix trailing whitespace

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
4 years agoGH-42128: Add Pattern Matching to What's New (#24667)
Carol Willing [Sun, 28 Feb 2021 23:43:17 +0000 (15:43 -0800)] 
GH-42128: Add Pattern Matching to What's New (#24667)

* Add Pattern Matching to What's New

* add review suggestions

* fix stray indent

* Add suggestions from gvr and lr

* trim whitespace

4 years agobpo-29753: fix merging packed bitfields in ctypes struct/union (GH-19850)
Filipe Laíns [Sun, 28 Feb 2021 22:43:19 +0000 (22:43 +0000)] 
bpo-29753: fix merging packed bitfields in ctypes struct/union (GH-19850)

From the commit message:

> When the structure is packed we should always expand when needed,
> otherwise we will add some padding between the fields. This patch makes
> sure we always merge bitfields together. It also changes the field merging
> algorithm so that it handles bitfields correctly.

Automerge-Triggered-By: GH:jaraco
4 years agobpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite ...
Pablo Galindo [Sun, 28 Feb 2021 22:41:09 +0000 (22:41 +0000)] 
bpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite (GH-24643)

4 years agoAdd whatsnew note for GH-22904 (#24672)
Dennis Sweeney [Sun, 28 Feb 2021 21:32:04 +0000 (16:32 -0500)] 
Add whatsnew note for GH-22904 (#24672)

4 years agobpo-41972: Use the two-way algorithm for string searching (GH-22904)
Dennis Sweeney [Sun, 28 Feb 2021 18:20:50 +0000 (13:20 -0500)] 
bpo-41972: Use the two-way algorithm for string searching (GH-22904)

Implement an enhanced variant of Crochemore and Perrin's Two-Way string searching algorithm, which reduces worst-case time from quadratic (the product of the string and pattern lengths) to linear. This applies to forward searches (like``find``, ``index``, ``replace``); the algorithm for reverse searches (like ``rfind``) is not changed.

Co-authored-by: Tim Peters <tim.peters@gmail.com>
4 years agobpo-43251: sqlite3_column_name() failures now raise MemoryError (GH-24609)
Erlend Egeberg Aasland [Sun, 28 Feb 2021 17:01:06 +0000 (18:01 +0100)] 
bpo-43251: sqlite3_column_name() failures now raise MemoryError (GH-24609)

4 years agobpo-43345: Enhance TypedDict documentation. (#24668)
Paul Bryan [Sun, 28 Feb 2021 07:02:14 +0000 (23:02 -0800)] 
bpo-43345: Enhance TypedDict documentation. (#24668)

4 years agobpo-43335: Update macro to check gcc version (GH-24662)
Dong-hee Na [Sun, 28 Feb 2021 00:16:24 +0000 (09:16 +0900)] 
bpo-43335: Update macro to check gcc version (GH-24662)

4 years agobpo-43321: Fix SystemError in getargs.c (GH-24656)
Inada Naoki [Sat, 27 Feb 2021 11:31:03 +0000 (20:31 +0900)] 
bpo-43321: Fix SystemError in getargs.c (GH-24656)

4 years agobpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)
Brandt Bucher [Fri, 26 Feb 2021 22:51:55 +0000 (14:51 -0800)] 
bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)

Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Talin <viridia@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
4 years agobpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented (#16459)
Alex [Fri, 26 Feb 2021 19:58:39 +0000 (21:58 +0200)] 
bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented (#16459)

4 years agobpo-43294: Remove unused variables in pysqlite_connection_*() (GH-24658)
Erlend Egeberg Aasland [Fri, 26 Feb 2021 14:30:22 +0000 (15:30 +0100)] 
bpo-43294: Remove unused variables in pysqlite_connection_*() (GH-24658)

4 years agobpo-43317: Use io.DEFAULT_BUFFER_SIZE instead of 1024 in gzip CLI (#24645)
Ruben Vorderman [Fri, 26 Feb 2021 12:17:51 +0000 (13:17 +0100)] 
bpo-43317: Use io.DEFAULT_BUFFER_SIZE instead of 1024 in gzip CLI (#24645)

This improves the performance slightly.

4 years agoUpdate logging.config.rst (GH-24630)
takahashi [Fri, 26 Feb 2021 10:30:05 +0000 (19:30 +0900)] 
Update logging.config.rst (GH-24630)

# a typo fix

Automerge-Triggered-By: GH:vsajip
4 years agocloses bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC...
Joseph Shen [Fri, 26 Feb 2021 04:24:21 +0000 (12:24 +0800)] 
closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)

Automerge-Triggered-By: GH:benjaminp
4 years agobpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650)
Ammar Askar [Fri, 26 Feb 2021 03:24:32 +0000 (22:24 -0500)] 
bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650)

Co-authored-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
4 years agobpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
Inada Naoki [Fri, 26 Feb 2021 02:09:06 +0000 (11:09 +0900)] 
bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)

4 years agobpo-43314: Remove SQLITE_OPEN_URI ifdef (GH-24637)
Erlend Egeberg Aasland [Fri, 26 Feb 2021 00:48:19 +0000 (01:48 +0100)] 
bpo-43314: Remove SQLITE_OPEN_URI ifdef (GH-24637)

SQLite 3.7.15 is required as by GH-24106. SQLITE_OPEN_URI was added in
SQLite 3.7.7.

4 years agobpo-43290: Remove workaround from pysqlite_step() (GH-24638)
Erlend Egeberg Aasland [Thu, 25 Feb 2021 23:39:34 +0000 (00:39 +0100)] 
bpo-43290: Remove workaround from pysqlite_step() (GH-24638)

From the SQLite 3.5.3 changelog:

sqlite3_step() returns SQLITE_MISUSE instead of crashing when called
with a NULL parameter.

The workaround no longer needed because we no longer support
SQLite releases older than 3.7.15.

4 years agobpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
Ruben Vorderman [Thu, 25 Feb 2021 11:30:24 +0000 (12:30 +0100)] 
bpo-43316:  gzip: CLI uses non-zero return code on error. (GH-24647)

Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is
the proper behaviour for a tool that can be used in scripts.

4 years agoRemove comment about a private email.headerregistry (GH-24233)
Florian Bruhin [Wed, 24 Feb 2021 21:21:32 +0000 (22:21 +0100)] 
Remove comment about a private email.headerregistry (GH-24233)

It's been public since 2012: ea9766897bf1d2ccf610ff9ce805acca7c4cce6f

4 years agobpo-43293: Doc: move note about GIL to top of threading module (GH-24622)
Guanzhong Chen [Wed, 24 Feb 2021 18:39:38 +0000 (13:39 -0500)] 
bpo-43293: Doc: move note about GIL to top of threading module (GH-24622)

The note about the GIL was buried pretty deep in the threading documentation,
and this made it hard for first time users to discover why their attempts
at using threading to parallelizing their application did not work.

In this commit, the note is moved to the top of the module documention for
visibility.

4 years agobpo-42151: don't set specified_attributes=1 in pure Python ElementTree (GH-22987)
Felix C. Stegerman [Wed, 24 Feb 2021 02:25:31 +0000 (03:25 +0100)] 
bpo-42151: don't set specified_attributes=1 in pure Python ElementTree (GH-22987)