]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-44135: [docs] Fix inline markup (GH-28095)
Miss Islington (bot) [Tue, 31 Aug 2021 16:25:08 +0000 (09:25 -0700)] 
bpo-44135: [docs] Fix inline markup (GH-28095)

(cherry picked from commit 9a7ec2fcdee2da9e080ca459d4c240776df72567)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090)
Miss Islington (bot) [Tue, 31 Aug 2021 15:53:17 +0000 (08:53 -0700)] 
bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090)

Fix indentation of <no Python frame> message in a faulthandler
traceback or a Fatal Python error traceback. Example:

Current thread 0x00007f03896fb740 (most recent call first):
  Garbage-collecting
  <no Python frame>
(cherry picked from commit 888d4cc06b887e77f281ba4d640e281cb4c61b7b)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
Miss Islington (bot) [Tue, 31 Aug 2021 14:23:22 +0000 (07:23 -0700)] 
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)

Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com>
(cherry picked from commit 08767c73b5bf1f28792d5fef7f41d52822a4989f)

Co-authored-by: Zack Kneupper <zachary.kneupper@gmail.com>
4 years agobpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)
Miss Islington (bot) [Tue, 31 Aug 2021 10:07:49 +0000 (03:07 -0700)] 
bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)

(cherry picked from commit edae42f99f8153b92ccf365dbd1c2fa954f913b4)

Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
4 years agobpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006)
Miss Islington (bot) [Mon, 30 Aug 2021 17:38:34 +0000 (10:38 -0700)] 
bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006)

* Functions registered with addModuleCleanup() were not called unless
  the user defines tearDownModule() in their test module.
* Functions registered with addClassCleanup() were not called if
  tearDownClass is set to None.
* Buffering in TestResult did not work with functions registered
  with addClassCleanup() and addModuleCleanup().
* Errors in functions registered with addClassCleanup() and
  addModuleCleanup() were not handled correctly in buffered and
  debug modes.
* Errors in setUpModule() and functions registered with
  addModuleCleanup() were reported in wrong order.
* And several lesser bugs.
(cherry picked from commit 08d9e597c8ef5a2b26375ac954fdf224f5d82c3c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-41620: TestCase.run() now always return a TestResult instance (GH-28030)
Miss Islington (bot) [Mon, 30 Aug 2021 13:43:38 +0000 (06:43 -0700)] 
bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030)

Previously it returned None if the test class or method was
decorated with a skipping decorator.

Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com>
(cherry picked from commit 7e246a3a7b43762480ee4fe0cfb859e8e997a8c8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44449: faulthandler don't modify frame refcnt (GH-27850)
Victor Stinner [Mon, 30 Aug 2021 13:24:39 +0000 (15:24 +0200)] 
bpo-44449: faulthandler don't modify frame refcnt (GH-27850)

Fix a crash in the signal handler of the faulthandler module: no
longer modify the reference count of frame objects.

4 years ago[3.10] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009) (GH...
Łukasz Langa [Mon, 30 Aug 2021 13:19:16 +0000 (15:19 +0200)] 
[3.10] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009) (GH-28039)

(cherry picked from commit d3bdbbf9a4352a24fc2bfc7a63a024b244b61aba)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-45007: Update multissl to openssl 1.1.1l as well (GH-28044)
Miss Islington (bot) [Mon, 30 Aug 2021 13:07:38 +0000 (06:07 -0700)] 
bpo-45007: Update multissl to openssl 1.1.1l as well (GH-28044)

This was missed while upgrading CI.
(cherry picked from commit d6cb5dd9e19210f5963ff8beadde7ca2fda71574)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries when built...
Miss Islington (bot) [Mon, 30 Aug 2021 09:09:34 +0000 (02:09 -0700)] 
bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries when built on older macOS systems (GH-27251)

Previously, when built on older macOS systems, `find_library` was not able to find macOS system libraries when running on Big Sur due to changes in how system libraries are stored.
(cherry picked from commit 71853a73024a98aa38a3c0444fe364dbd9709134)

Co-authored-by: Tobias Bergkvist <tobias@bergkv.ist>
4 years agobpo 45007: Update macOS installer builds to use OpenSSL 1.1.1l. (GH-28051)
Miss Islington (bot) [Mon, 30 Aug 2021 07:33:57 +0000 (00:33 -0700)] 
bpo 45007: Update macOS installer builds to use OpenSSL 1.1.1l. (GH-28051)

(cherry picked from commit 94b2639fad50d7ff8acd12c11e5fe5f9a6e1da5c)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-43124: Fix smtplib multiple CRLF injection (GH-25987) 28049/head
Miss Islington (bot) [Sun, 29 Aug 2021 14:43:39 +0000 (07:43 -0700)] 
bpo-43124: Fix smtplib multiple CRLF injection (GH-25987)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 0897253f426068ea6a6fbe0ada01689af9ef1019)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
4 years agobpo-44394: Update libexpat copy to 2.4.1 (GH-26945)
Miss Islington (bot) [Sun, 29 Aug 2021 14:32:50 +0000 (07:32 -0700)] 
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)

Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the
fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy
is most used on Windows and macOS.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3fc5d84046ddbd66abac5b598956ea34605a4e5d)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc ...
Miss Islington (bot) [Sun, 29 Aug 2021 12:57:22 +0000 (05:57 -0700)] 
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc (GH-23200)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c9227df5a9d8e958a2324cf0deba8524d1ded26a)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years agobpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)
Miss Islington (bot) [Sun, 29 Aug 2021 10:43:48 +0000 (03:43 -0700)] 
bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)

(cherry picked from commit 07d3d54f4e84b1259b800884b202701f69e408d8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-25130: Make unit-test about restricting the maximum number of nested blocks cpyth...
Miss Islington (bot) [Sat, 28 Aug 2021 19:24:02 +0000 (12:24 -0700)] 
bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only (GH-28002) (GH-28016)

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only.
(cherry picked from commit eb263f9a356f5c5f21b8d5ce20bac92f31c40cad)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
4 years ago[3.10] bpo-27334: roll back transaction if sqlite3 context manager fails to commit...
Erlend Egeberg Aasland [Sat, 28 Aug 2021 18:26:00 +0000 (20:26 +0200)] 
[3.10] bpo-27334: roll back transaction if sqlite3 context manager fails to commit (GH-26202) (GH-27943)

4 years agobpo-44524: Fix cryptic TypeError message when trying to subclass special forms in...
Miss Islington (bot) [Sat, 28 Aug 2021 18:09:45 +0000 (11:09 -0700)] 
bpo-44524: Fix cryptic TypeError message when trying to subclass special forms in `typing` (GH-27710)

This was a Python 3.9 regression.
(cherry picked from commit a3a4d20d6798aa2975428d51f3a4f890248810cb)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
4 years agobpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938)
Miss Islington (bot) [Sat, 28 Aug 2021 18:09:29 +0000 (11:09 -0700)] 
bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2)

Co-authored-by: chilaxan <chilaxan@gmail.com>
4 years agobpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads...
Miss Islington (bot) [Sat, 28 Aug 2021 18:09:21 +0000 (11:09 -0700)] 
bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads attempt to commit the last pending removal (GH-27921)

Fixes:
Traceback (most recent call last):
  File "/home/graingert/projects/asyncio-demo/demo.py", line 36, in <module>
    sys.exit(main())
  File "/home/graingert/projects/asyncio-demo/demo.py", line 30, in main
    test_all_tasks_threading()
  File "/home/graingert/projects/asyncio-demo/demo.py", line 24, in test_all_tasks_threading
    results.append(f.result())
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 438, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 390, in __get_result
    raise self._exception
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.10/asyncio/runners.py", line 47, in run
    _cancel_all_tasks(loop)
  File "/usr/lib/python3.10/asyncio/runners.py", line 56, in _cancel_all_tasks
    to_cancel = tasks.all_tasks(loop)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 53, in all_tasks
    tasks = list(_all_tasks)
  File "/usr/lib/python3.10/_weakrefset.py", line 60, in __iter__
    with _IterationGuard(self):
  File "/usr/lib/python3.10/_weakrefset.py", line 33, in __exit__
    w._commit_removals()
  File "/usr/lib/python3.10/_weakrefset.py", line 57, in _commit_removals
    discard(l.pop())
IndexError: pop from empty list

Also fixes:
Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
    del self.data[k]
KeyError: <weakref at 0x00007fe76e8d8180; dead>
Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
    del self.data[k]
KeyError: <weakref at 0x00007fe76e8d81a0; dead>
Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
    del self.data[k]
KeyError: <weakref at 0x000056548f1e24a0; dead>

See: https://github.com/agronholm/anyio/issues/362GH-issuecomment-904424310
See also: https://bugs.python.org/issue29519

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 206b21ed9f64fedff67bfea7cf73e423e3e32393)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-45022: Pin current libffi build to fixed version in preparation for upcoming...
Miss Islington (bot) [Fri, 27 Aug 2021 16:28:54 +0000 (09:28 -0700)] 
bpo-45022: Pin current libffi build to fixed version in preparation for upcoming update (GH-27982)

Also improve the build script for libffi, which is not used as part of the regular build.
(cherry picked from commit 969ae7f7356584e30667b4e490ffa2ffa1810429)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-44997: macOS does not support loadable SQLite extensions (GH-27979)
Miss Islington (bot) [Fri, 27 Aug 2021 11:29:24 +0000 (04:29 -0700)] 
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)

Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
(cherry picked from commit 2ec9428e3516b6e7c6583687aa3b39fb96925577)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-40635: Fix getfqdn() docstring and docs (GH-27971)
Miss Islington (bot) [Thu, 26 Aug 2021 19:54:52 +0000 (12:54 -0700)] 
bpo-40635: Fix getfqdn() docstring and docs (GH-27971)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit fdcb675eed47b1f6054fae381af4388b16a6fff4)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-45001: Make email date parsing more robust against malformed input (GH-27946)
Miss Islington (bot) [Thu, 26 Aug 2021 15:47:27 +0000 (08:47 -0700)] 
bpo-45001: Make email date parsing more robust against malformed input (GH-27946)

Various date parsing utilities in the email module, such as
email.utils.parsedate(), are supposed to gracefully handle invalid
input, typically by raising an appropriate exception or by returning
None.

The internal email._parseaddr._parsedate_tz() helper used by some of
these date parsing routines tries to be robust against malformed input,
but unfortunately it can still crash ungracefully when a non-empty but
whitespace-only input is passed. This manifests as an unexpected
IndexError.

In practice, this can happen when parsing an email with only a newline
inside a ‘Date:’ header, which unfortunately happens occasionally in the
real world.

Here's a minimal example:

    $ python
    Python 3.9.6 (default, Jun 30 2021, 10:22:16)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import email.utils
    >>> email.utils.parsedate('foo')
    >>> email.utils.parsedate(' ')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
        t = parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
        res = _parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
        if data[0].endswith(',') or data[0].lower() in _daynames:
    IndexError: list index out of range

The fix is rather straight-forward: guard against empty lists, after
splitting on whitespace, but before accessing the first element.
(cherry picked from commit 989f6a3800f06b2bd31cfef7c3269a443ad94fac)

Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
4 years agobpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)
Miss Islington (bot) [Thu, 26 Aug 2021 13:41:29 +0000 (06:41 -0700)] 
bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7dc505b8655b3e48b93a4274dfd26e5856d9c64f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947) (GH-27957)
Dong-hee Na [Thu, 26 Aug 2021 09:52:21 +0000 (09:52 +0000)] 
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947) (GH-27957)

(cherry picked from commit 551da597a0996b0fb3af425f48aa5bc63ea6b963)

4 years ago[3.10] bpo-45000: Update whatsnews about deleting __debug__ (GH-27956) (GH-27958)
Dong-hee Na [Thu, 26 Aug 2021 09:52:00 +0000 (09:52 +0000)] 
[3.10] bpo-45000: Update whatsnews about deleting __debug__ (GH-27956) (GH-27958)

(cherry picked from commit c764dfbcbc12c4653fc8ab39773cf973c9db2757)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951) (GH...
Miss Islington (bot) [Thu, 26 Aug 2021 07:04:05 +0000 (00:04 -0700)] 
bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951) (GH-27963)

(cherry picked from commit 806e25fd3173a80021e6df87b81263b5f6056f38)

Co-authored-by: Objectivitix <79152594+Objectivitix@users.noreply.github.com>
4 years ago[3.10] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922). (GH...
Erlend Egeberg Aasland [Wed, 25 Aug 2021 19:50:23 +0000 (21:50 +0200)] 
[3.10] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922). (GH-27953)

(cherry picked from commit 7903a1096343d8018e889029f025d39bdd077170)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841)
Miss Islington (bot) [Wed, 25 Aug 2021 18:36:47 +0000 (11:36 -0700)] 
bpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841)

(cherry picked from commit 23384a1749359f0ae7aaae052073d44b59e715a1)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-39452: Rewrite and expand __main__.rst (GH-26883)
Miss Islington (bot) [Tue, 24 Aug 2021 20:54:08 +0000 (13:54 -0700)] 
bpo-39452: Rewrite and expand __main__.rst (GH-26883)

Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``.

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7cba23164cf82f6619db002cd30021b5dfb1f809)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years ago[3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int ...
Miss Islington (bot) [Tue, 24 Aug 2021 15:09:14 +0000 (08:09 -0700)] 
[3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)

(cherry picked from commit bb21e28fd08f894ceff2405544a2f257d42b1354)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
4 years agoUpdate susp-ignored.csv line numbers 27925/head
Miss Islington (bot) [Mon, 23 Aug 2021 22:52:02 +0000 (15:52 -0700)] 
Update susp-ignored.csv line numbers

4 years agobpo-42560: simplify/merge architecture info in Tkinter docs (GH-27839)
Miss Islington (bot) [Mon, 23 Aug 2021 20:08:19 +0000 (13:08 -0700)] 
bpo-42560: simplify/merge architecture info in Tkinter docs (GH-27839)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
(cherry picked from commit e41912c6348362489d2514565a70782591f23902)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years ago[doc] Fix typo c-api/exceptions.rst (GH-27847)
Miss Islington (bot) [Mon, 23 Aug 2021 19:40:36 +0000 (12:40 -0700)] 
[doc] Fix typo c-api/exceptions.rst (GH-27847)

Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
(cherry picked from commit dcbf7ff6a700b63e637a0445d68866670a398024)

Co-authored-by: Sunny Bean <ptq008@gmail.com>
4 years agobpo-44984: Rewrite test_null_strings in _testcapi (GH-27904)
Miss Islington (bot) [Mon, 23 Aug 2021 19:30:21 +0000 (12:30 -0700)] 
bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904)

Test also PyObject_Repr(NULL) and PyObject_Bytes(NULL).
(cherry picked from commit 4d689173861257c69adc6dc1dca4171946ddb57f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[doc] Added mailing list link for comp.lang.python (GH-27852)
Miss Islington (bot) [Mon, 23 Aug 2021 19:23:48 +0000 (12:23 -0700)] 
[doc] Added mailing list link for comp.lang.python (GH-27852)

(cherry picked from commit 7b550dfce64bd134c5604fd1f2d4c43ae2b669e4)

Co-authored-by: Mike Smith <mikesmith@screamingjoypad.com>
4 years agobpo-42560: add warning to Tkinter docs about outdated pre-8.5 documentation online...
Miss Islington (bot) [Mon, 23 Aug 2021 19:22:29 +0000 (12:22 -0700)] 
bpo-42560: add warning to Tkinter docs about outdated pre-8.5 documentation online (GH-27836)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
(cherry picked from commit 1eb451031a64b4f28d737ee7f394252ae9a76118)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-44980: fix test_constructor to return None value (GH-27898)
Miss Islington (bot) [Mon, 23 Aug 2021 19:21:06 +0000 (12:21 -0700)] 
bpo-44980: fix test_constructor to return None value (GH-27898)

(cherry picked from commit 27b761a11a14521617a01257eb3767150bec3a74)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years ago[doc] Fix typo in idle.rst (GH-27903)
Miss Islington (bot) [Mon, 23 Aug 2021 17:53:52 +0000 (10:53 -0700)] 
[doc] Fix typo in idle.rst (GH-27903)

intially -> initially
(cherry picked from commit 0e8695ece0d3569eeb1b89c91a1b0aa3d34f228e)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
4 years agobpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
Miss Islington (bot) [Mon, 23 Aug 2021 17:32:35 +0000 (10:32 -0700)] 
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)

(cherry picked from commit 1a995b0ceefdf7eb59963f3ab395c47d8da226e3)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agoMove susp-ignored locations
Miss Islington (bot) [Sun, 22 Aug 2021 20:04:43 +0000 (13:04 -0700)] 
Move susp-ignored locations

4 years agobpo-4442: Document use of __new__ for subclasses of immutable types (GH-27866)
Miss Islington (bot) [Sun, 22 Aug 2021 19:49:24 +0000 (12:49 -0700)] 
bpo-4442:  Document use of __new__ for subclasses of immutable types (GH-27866)

(cherry picked from commit eec340ea3af27887fcaac4029ebdee99f3713bff)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years ago[3.10] bpo-42560: rework external references in Tkinter docs (GH-27838) (GH-27893)
Łukasz Langa [Sun, 22 Aug 2021 19:04:57 +0000 (21:04 +0200)] 
[3.10] bpo-42560: rework external references in Tkinter docs (GH-27838) (GH-27893)

- reorganized from two sections (tkinter vs. tcl/tk) into three (tkinter, tcl/tk, and books)
- main (recommended) tkinter docs have one tutorial (tkdocs) and one reference (shipman), added better descriptions
- dropped link to Tkinter page on wiki (suggestion by E. Paine; outdated, most material already linked to from python.org)
- replaced Tcl/Tk recent man pages and core dev home with single link to main Tcl/Tk page (which holds both of these)
- updated Modern Tkinter link to book page on TkDocs site (was Amazon link to old version), dropped description
- replaced Grayson book by Moore book (newer, covers ttk)
- changed Ousterhout ref to second edition, covers ttk
- dropped link to Welch book (old).
(cherry picked from commit d1049d1d6b43296d4db1aa8668aa4ca807bf7adb)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-42560: reorganize Tkinter docs modules section for clarity (GH-27840)
Miss Islington (bot) [Sun, 22 Aug 2021 19:04:24 +0000 (12:04 -0700)] 
bpo-42560: reorganize Tkinter docs modules section for clarity (GH-27840)

- move description of internal modules (_tkinter and tkinter.constants) from section intro to list of additional modules at end of section, as not most important info
- added missing ttk and tix here
- emphasized up front that most apps will need tkinter and ttk
(cherry picked from commit d5dbe8bca792350f4997c027535e0ca498abd1bb)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-42560: tweaks to intro of Tkinter docs- add macOS, drop ActiveState (GH-27835)
Miss Islington (bot) [Sun, 22 Aug 2021 18:54:46 +0000 (11:54 -0700)] 
bpo-42560: tweaks to intro of Tkinter docs- add macOS, drop ActiveState (GH-27835)

(cherry picked from commit 141c7a4fce8def67baa9d24f542c105b8502893e)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-44926: `get_type_hints`: Add note about type aliases with forward refs (GH-27859...
Miss Islington (bot) [Sun, 22 Aug 2021 18:29:59 +0000 (11:29 -0700)] 
bpo-44926: `get_type_hints`: Add note about type aliases with forward refs (GH-27859) (GH-27860)

(cherry picked from commit 16b9be4861e007ad483611ba0479feb2b90ea783)

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
4 years agobpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH...
Miss Islington (bot) [Sun, 22 Aug 2021 07:55:34 +0000 (00:55 -0700)] 
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH-27831)

Method stopTestRun() is now always called in pair with method startTestRun()
for TestResult objects implicitly created in TestCase.run().
Previously it was not called for test methods and classes decorated with
a skipping decorator.
(cherry picked from commit a9640d75531d6cbbfd254b65435f238c26bf5cd9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44940: Clarify the documentation of re.findall() (GH-27849)
Miss Islington (bot) [Sun, 22 Aug 2021 07:45:02 +0000 (00:45 -0700)] 
bpo-44940: Clarify the documentation of re.findall() (GH-27849)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Vedran Čačić <vedgar+github@gmail.com>
(cherry picked from commit 64f9e7b19dc1603fcbd07c17c9860085b9d21465)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44966: Fix out-of-date traceback message (GH-27867)
Miss Islington (bot) [Sun, 22 Aug 2021 00:35:32 +0000 (17:35 -0700)] 
bpo-44966: Fix out-of-date traceback message (GH-27867)

(cherry picked from commit 15a64d89a31b7e91f0361c305b7b27d8761db93d)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agobpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870)
Miss Islington (bot) [Sat, 21 Aug 2021 20:30:08 +0000 (13:30 -0700)] 
bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870)

The code of the test was never executed because the test function
was unintentionally converted to a generator function.
(cherry picked from commit 585390fdd8661b4bc08bdfc27551292da9b4b9b8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44524: Do not set _name of _SpecialForm without need (GH-27861) (GH-27871)
Miss Islington (bot) [Sat, 21 Aug 2021 09:33:14 +0000 (02:33 -0700)] 
bpo-44524: Do not set _name of _SpecialForm without need (GH-27861) (GH-27871)

Because setting non-empty _name affects behavior of other code.

In most cases __name__ can be derived from __origin__.__name__.
(cherry picked from commit 4ceec495598e78f0776dd46d511dcc612a434dc3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44954: Fix wrong result in float.fromhex corner case (GH-27834)
Miss Islington (bot) [Fri, 20 Aug 2021 17:48:47 +0000 (10:48 -0700)] 
bpo-44954: Fix wrong result in float.fromhex corner case (GH-27834)

(cherry picked from commit 60b93d9e4922eeae25052bc15909d1f4152babde)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agoFix reST markup in dataclasses.rst (GH-27843) (GH-27845)
Miss Islington (bot) [Thu, 19 Aug 2021 20:49:15 +0000 (13:49 -0700)] 
Fix reST markup in dataclasses.rst (GH-27843) (GH-27845)

The signature of field() had an extraneous colon at the end, causing it
to appear all bold and without the module name.
(cherry picked from commit d26dbba9297adb59bc49a6583c647804ef56fc58)

Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
4 years agobpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824)
Miss Islington (bot) [Thu, 19 Aug 2021 09:16:15 +0000 (02:16 -0700)] 
bpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824)

(cherry picked from commit 0fd66e46b2f472d0d206a185dc8892f4f0347cb6)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44949: Fix test_readline auto history tests (GH-27813)
Miss Islington (bot) [Thu, 19 Aug 2021 08:52:16 +0000 (01:52 -0700)] 
bpo-44949: Fix test_readline auto history tests (GH-27813)

(cherry picked from commit 6fb62b42f4db56ed5efe0ca4c1059049276c1083)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-44830: [doc] Restore missing Mozilla devguide link (GH-27818)
Miss Islington (bot) [Thu, 19 Aug 2021 08:33:42 +0000 (01:33 -0700)] 
bpo-44830: [doc] Restore missing Mozilla devguide link (GH-27818)

(cherry picked from commit 942d1a4284e9341df47c48d7c63e921136dc9719)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years agobpo-44947: Refine the syntax error for trailing commas in import statements (GH-27814)
Miss Islington (bot) [Wed, 18 Aug 2021 20:32:01 +0000 (13:32 -0700)] 
bpo-44947: Refine the syntax error for trailing commas in import statements (GH-27814)

(cherry picked from commit b2f68b190035540872072ac1d2349e7745e85596)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-44852: Support filtering over warnings without a set message (GH-27793)
Miss Islington (bot) [Wed, 18 Aug 2021 12:10:10 +0000 (05:10 -0700)] 
bpo-44852: Support filtering over warnings without a set message (GH-27793)

Additional improvements:

- messages which were compiled regular expressions aren't unpacked back into
  strings for unmatched warnings;

- removed unnecessary "if tokens:" check (there's one before the for loop);

- took `endswith` calculation out of the for loop.
(cherry picked from commit 8cf07d3db3eed02b43350a5f9dbf68f1c839ea82)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
Miss Islington (bot) [Tue, 17 Aug 2021 23:17:29 +0000 (16:17 -0700)] 
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3240bc62f4e0afa09964f3afc845697f0a0806b9)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
4 years agointroduce omitted index default before using it (GH-27775) (GH-27802)
Miss Islington (bot) [Tue, 17 Aug 2021 21:42:50 +0000 (14:42 -0700)] 
introduce omitted index default before using it (GH-27775) (GH-27802)

(cherry picked from commit 599f5c8481ca258ca3a5d13eaee7d07a9103b5f2)

Co-authored-by: Jefferson Oliveira <jefferson.dev.insights@gmail.com>
4 years ago[3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800)
Miss Islington (bot) [Tue, 17 Aug 2021 18:33:34 +0000 (11:33 -0700)] 
[3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800)

Enable posix_spawn() on Solaris
(cherry picked from commit b1930bf75f276cd7ca08c4455298128d89adf7d1)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Automerge-Triggered-By: GH:gpshead
4 years agobpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772)...
Miss Islington (bot) [Tue, 17 Aug 2021 17:38:03 +0000 (10:38 -0700)] 
bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27796)

(cherry picked from commit 4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762)
Miss Islington (bot) [Tue, 17 Aug 2021 10:08:49 +0000 (03:08 -0700)] 
bpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762)

(cherry picked from commit 6a358bb9482f7595b858ea7b800cbe66f0de5fa1)

Co-authored-by: Gautam Chaudhuri <gautam.chaudhuri.1803@gmail.com>
4 years ago[3.10] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest...
Łukasz Langa [Tue, 17 Aug 2021 10:01:00 +0000 (12:01 +0200)] 
[3.10] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest (GH-27634) (GH-27784)

(cherry picked from commit a0a6d39295a30434b088f4b66439bf5ea21a3e4e)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-38956: don't print BooleanOptionalAction's default twice (GH-27672)
Miss Islington (bot) [Tue, 17 Aug 2021 09:40:41 +0000 (02:40 -0700)] 
bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672)

Co-authored-by: Micky Yun Chan <michan@redhat.com>
(cherry picked from commit 1512bc21d60f098a9e9f37b44a2f6a9b49a3fd4f)

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
4 years agobpo-44911: Fixed IsolatedAsyncioTestCase from throwing an exception on leaked tasks... 27780/head
Miss Islington (bot) [Mon, 16 Aug 2021 09:54:58 +0000 (02:54 -0700)] 
bpo-44911: Fixed IsolatedAsyncioTestCase from throwing an exception on leaked tasks (GH-27765)

(cherry picked from commit 2cb1a6806c0cefab0c3a40fdd428a89a4392570e)

Co-authored-by: Bar Harel <bar.harel@biocatch.com>
4 years agobpo-44895: skip test_no_hang_on_context_chain_cycle2 until the refleak is fixed ...
Miss Islington (bot) [Mon, 16 Aug 2021 09:01:14 +0000 (02:01 -0700)] 
bpo-44895: skip test_no_hang_on_context_chain_cycle2 until the refleak is fixed (GH-27761)

(cherry picked from commit 62bc716fde20fcb7b47416c7959be9e66df93212)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years ago[3.10] bpo-44830 - Remove the broken Broken Mozilla devguide link. (GH-27664) (GH...
Senthil Kumaran [Mon, 16 Aug 2021 08:48:08 +0000 (01:48 -0700)] 
[3.10] bpo-44830 - Remove the broken Broken Mozilla devguide link. (GH-27664) (GH-27666)

(cherry picked from commit ebecffdb6d5fffa4249f9a813f1fc1915926feb5)

Co-authored-by: Senthil Kumaran <senthil@python.org>
4 years agobpo-44907: Update error messages in tutorial examples (GH-27755)
Miss Islington (bot) [Sat, 14 Aug 2021 00:25:11 +0000 (17:25 -0700)] 
bpo-44907: Update error messages in tutorial examples (GH-27755)

(cherry picked from commit ed524b4569b1e4a166886c880018418d46284378)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
4 years agobpo-36700: [doc] Update base64 RFC references to RFC 4648 (GH-27700)
Miss Islington (bot) [Fri, 13 Aug 2021 11:21:53 +0000 (04:21 -0700)] 
bpo-36700: [doc] Update base64 RFC references to RFC 4648 (GH-27700)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit e43b9bbc31c22a0d97dc4fc420300e40c2d74166)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754)
Miss Islington (bot) [Fri, 13 Aug 2021 11:21:06 +0000 (04:21 -0700)] 
bpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754)

Co-authored-by: Cornelius Diekmann <c.diekmann@googlemail.com>
(cherry picked from commit dd8eb303b90d63e1f56684bedadca6674bb74a29)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agoAdded test case based on recommended test cases from RFC 4648 (GH-27747)
Miss Islington (bot) [Fri, 13 Aug 2021 11:15:27 +0000 (04:15 -0700)] 
Added test case based on recommended test cases from RFC 4648 (GH-27747)

(cherry picked from commit 230403a6a19042b174374c3825904d2e857f38b0)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-44891: Tests `id` preserving on `* 1` for `str` and `bytes` (GH-27745)
Miss Islington (bot) [Fri, 13 Aug 2021 11:04:08 +0000 (04:04 -0700)] 
bpo-44891: Tests `id` preserving on `* 1` for `str` and `bytes` (GH-27745)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit a2ce538e16d5e3a6168704366bdd7a8c5af29881)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-44895: Temporarily add an extra gc.collect() call (GH-27746)
Miss Islington (bot) [Fri, 13 Aug 2021 10:21:26 +0000 (03:21 -0700)] 
bpo-44895: Temporarily add an extra gc.collect() call (GH-27746)

This is part of an investigation of a non-deterministic reference leak. While we're looking for the root cause, this is included temporarily so that CI doesn't fail on this particular issue. This enables it to find other regressions in the meantime, which would otherwise be shadowed by our known issue.
(cherry picked from commit 7bf28cbb4bf37fa6bdfc2d3f8a3939066b3f8f22)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years ago[3.10] bpo-33930: Fix typo in the test name. (GH-27736)
Benjamin Peterson [Fri, 13 Aug 2021 09:45:13 +0000 (02:45 -0700)] 
[3.10] bpo-33930: Fix typo in the test name. (GH-27736)

[bpo-33930](): Fix typo in the test name. (GH-27733)
(cherry picked from commit f08e6d1bb3c5655f184af88c6793e90908bb6338)

Automerge-Triggered-By: GH:benjaminp
4 years ago[3.10] bpo-44885: Correct the ast locations of f-strings with format specs and repeat...
Pablo Galindo Salgado [Thu, 12 Aug 2021 16:41:21 +0000 (17:41 +0100)] 
[3.10] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27743)

(cherry picked from commit 8e832fb2a2cb54d7262148b6ec15563dffb48d63)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-26228: Fix pty EOF handling (GH-12049) (GH-27732)
Miss Islington (bot) [Thu, 12 Aug 2021 12:36:04 +0000 (05:36 -0700)] 
bpo-26228: Fix pty EOF handling (GH-12049) (GH-27732)

On non-Linux POSIX platforms, like FreeBSD or macOS,
the FD used to read a forked PTY may signal its exit not
by raising an error but by sending empty data to the read
syscall. This case wasn't handled, leading to hanging
`pty.spawn` calls.

Co-authored-by: Reilly Tucker Siemens <reilly@tuckersiemens.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 81ab8db235580317edcb0e559cd4c983f70883f5)

Co-authored-by: Zephyr Shannon <geoffpshannon@gmail.com>
4 years agobpo-33479: Add architecture and threading model sections to Tkinter module docs ...
Miss Islington (bot) [Wed, 11 Aug 2021 17:16:10 +0000 (10:16 -0700)] 
bpo-33479: Add architecture and threading model sections to Tkinter module docs (GH-27717)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 08caf2d5d4a9994976e9eafaf345b5a1a4012a81)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agoAdd .DS_Store on ignore (GH-27711) (GH-27723)
Miss Islington (bot) [Wed, 11 Aug 2021 13:06:43 +0000 (06:06 -0700)] 
Add .DS_Store on ignore (GH-27711) (GH-27723)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 1841c70f2bdab9d29c1c74a8afffa45d5555af98)

Co-authored-by: 180909 <wjh180909@gmail.com>
4 years agobpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678...
Miss Islington (bot) [Wed, 11 Aug 2021 08:32:44 +0000 (01:32 -0700)] 
bpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678) (GH-27719)

(cherry picked from commit bfc2d5a5c4550ab3a2fadeb9459b4bd948ff61a2)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638)
Miss Islington (bot) [Tue, 10 Aug 2021 17:06:18 +0000 (10:06 -0700)] 
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638)

(cherry picked from commit c0ab59f7de1906feee21c057ad433fad924d1e38)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694)
Miss Islington (bot) [Tue, 10 Aug 2021 14:31:00 +0000 (07:31 -0700)] 
bpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694)

(cherry picked from commit 8ed183391241f0c73e7ba7f42b1d49fc02985f7b)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years agobpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its...
Miss Islington (bot) [Tue, 10 Aug 2021 13:47:23 +0000 (06:47 -0700)] 
bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its context chain (GH-27626)

Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com
(cherry picked from commit d5c217475c4957a8084ac3f92ae012ece5edc7cb)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years agomake lib2to3 parse async generators everywhere (GH-6588)
Miss Islington (bot) [Tue, 10 Aug 2021 13:47:11 +0000 (06:47 -0700)] 
make lib2to3 parse async generators everywhere (GH-6588)

(cherry picked from commit 149addd4960d634ce672ab5fc17e0e785a0cdcd0)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
4 years agobpo-33479: Remove unqualified tkinter threadsafe claim. (GH-6990)
Miss Islington (bot) [Tue, 10 Aug 2021 09:55:08 +0000 (02:55 -0700)] 
bpo-33479: Remove unqualified tkinter threadsafe claim. (GH-6990)

It has not been true for several years and likely never was.
(cherry picked from commit 6b37d0d5300813de31d66df1c77dad7e1027e4d8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27690)
Irit Katriel [Tue, 10 Aug 2021 07:56:14 +0000 (08:56 +0100)] 
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27690)

4 years agobpo-39498 Start linking the security warnings in the stdlib modules (GH-18272)
Miss Islington (bot) [Tue, 10 Aug 2021 07:51:06 +0000 (00:51 -0700)] 
bpo-39498 Start linking the security warnings in the stdlib modules (GH-18272)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c5c5326d4799fe4ae566aff32ed3461af95859cc)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
4 years agobpo-41402: Fix email ContentManager calling .encode() on bytes (GH-21631)
Miss Islington (bot) [Mon, 9 Aug 2021 23:44:17 +0000 (16:44 -0700)] 
bpo-41402: Fix email ContentManager calling .encode() on bytes (GH-21631)

(cherry picked from commit b33186bc43bb5aaf652dd9d093a08fdde796d499)

Co-authored-by: Johannes Reiff <mail@jreiff.de>
4 years agobpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)
Miss Islington (bot) [Mon, 9 Aug 2021 17:39:05 +0000 (10:39 -0700)] 
bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)

This was causing test___all__ to fail on platforms lacking a shared
memory implementation.

Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit d0978761118856e8ca8ea7b162a6585b8da83df9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-44522: Fix inaccurate information in open() function (GH-27650)
Miss Islington (bot) [Mon, 9 Aug 2021 14:35:11 +0000 (07:35 -0700)] 
bpo-44522: Fix inaccurate information in open() function (GH-27650)

- Use "Low surrogate code units" instead of "Unicode Private Use Area"
(cherry picked from commit b05e9b63fcfcd4bd7a6434fa9f9a7028d12f91c4)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
4 years agoRemove unused variable. (GH-27677) (#27680)
Mark Shannon [Mon, 9 Aug 2021 14:25:40 +0000 (15:25 +0100)] 
Remove unused variable. (GH-27677) (#27680)

4 years agobpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470)
Miss Islington (bot) [Mon, 9 Aug 2021 10:30:30 +0000 (03:30 -0700)] 
bpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470)

Co-Authored-By: Bo Bayles <bbayles@gmail.com>
(cherry picked from commit eb2d4a66ff07aa6e51cfaaa31afed31addf76936)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-44840: Compiler: Move duplication of exit blocks with no line numbers to after...
Mark Shannon [Mon, 9 Aug 2021 09:54:48 +0000 (10:54 +0100)] 
bpo-44840: Compiler: Move duplication of exit blocks with no line numbers to after CFG optimization. (GH-27656) (#27673)

(cherry picked from commit b854557b49083d8625a433eb36aacb0c87d67c52)

4 years agoUpgrade bundled pip and setuptools (GH-27625)
Miss Islington (bot) [Sat, 7 Aug 2021 16:38:40 +0000 (09:38 -0700)] 
Upgrade bundled pip and setuptools (GH-27625)

pip is now 21.2.3
setuptools is now 57.4.0
(cherry picked from commit 738ac00a08cb6a9d104ec85ccb1a44c2399d6baa)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
4 years agobpo-44856: Possible reference leak in error paths of update_bases() and __build_class...
Miss Islington (bot) [Sat, 7 Aug 2021 14:03:17 +0000 (07:03 -0700)] 
bpo-44856: Possible reference leak in error paths of update_bases() and __build_class__ (GH-27647)

(cherry picked from commit a40675c659cd8c0699f85ee9ac31660f93f8c2f5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-41576: document BaseException in favor of bare except (GH-21917)
Miss Islington (bot) [Fri, 6 Aug 2021 21:14:40 +0000 (14:14 -0700)] 
bpo-41576: document BaseException in favor of bare except (GH-21917)

(cherry picked from commit e9a6f1b78bf57d9f3f99547bd007d7cfc9724cfb)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-27752: improve documentation of csv.Dialect (GH-26795)
Miss Islington (bot) [Fri, 6 Aug 2021 20:31:49 +0000 (13:31 -0700)] 
bpo-27752: improve documentation of csv.Dialect (GH-26795)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 0ffdced3b64ba5886fcde64266a31a15712da284)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years agobpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27640)
Miss Islington (bot) [Fri, 6 Aug 2021 20:11:44 +0000 (13:11 -0700)] 
bpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27640)

4 years agobpo-44756: [docs] revert automated virtual environment creation on `make html` (GH...
Miss Islington (bot) [Fri, 6 Aug 2021 19:15:54 +0000 (12:15 -0700)] 
bpo-44756: [docs] revert automated virtual environment creation on `make html` (GH-27635)

It turned out to be disruptive for downstream distributors.
(cherry picked from commit 55fa87b1ef46bbb9db7612b2dc2dd7fb039d9bc3)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>