summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45045: Optimize mapping patterns of structural pattern matching (GH-28043)Dong-hee Na2021-08-302-6/+30
|
* bpo 45007: Update macOS installer builds to use OpenSSL 1.1.1l. (GH-28051)Ned Deily2021-08-303-3/+64
|
* bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries ↵Tobias Bergkvist2021-08-302-3/+31
| | | | | when built on older macOS systems (#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.
* bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009)Steve Dower2021-08-296-23/+24
|
* bpo-43124: Fix smtplib multiple CRLF injection (GH-25987)Miguel Brito2021-08-293-3/+65
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)Victor Stinner2021-08-2922-191/+1389
| | | | | | | 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>
* bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in ↵E-Paine2021-08-292-6/+9
| | | | | pydoc (GH-23200) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005)Serhiy Storchaka2021-08-2936-14/+144
|
* bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)Serhiy Storchaka2021-08-292-2/+5
|
* bpo-25130: Make unit-test about restricting the maximum number of nested ↵Carl Friedrich Bolz-Tereick2021-08-281-32/+35
| | | | | | | | blocks cpython-only (GH-28002) 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.
* bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two ↵Thomas Grainger2021-08-283-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/362#issuecomment-904424310 See also: https://bugs.python.org/issue29519 Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993)Adam Dangoor2021-08-271-1/+1
|
* Refine specialization stats (GH-27992)Mark Shannon2021-08-271-17/+89
|
* bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)Erlend Egeberg Aasland2021-08-271-0/+2
| | | Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938)chilaxan2021-08-273-17/+33
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Update ACKS (GH-27988)Soumendra Ganguly2021-08-271-0/+1
|
* bpo-44945: Specialize BINARY_ADD (GH-27967)Mark Shannon2021-08-279-78/+253
|
* bpo-41818: ++ termios versionadded markers. (GH-27987)Gregory P. Smith2021-08-271-0/+4
| | | overlooked in https://github.com/python/cpython/pull/23686
* bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686)Soumendra Ganguly2021-08-274-1/+240
| | | | | | | | | | | | * Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs. * Add TIOCGSIZE support to termios.tcgetwinsize() * Add TIOCSSIZE support to termios.tcsetwinsize() Authored-by: Soumendra Ganguly <soumendraganguly@gmail.com> * termios.tcgetwinsize() and termios.tcsetwinsize() should return/accept two-item tuples instead of lists. * Refactor tcsetwinsize to share common code and accept any two item sequence, with overflow checking. Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
* bpo-45022: Pin current libffi build to fixed version in preparation for ↵Steve Dower2021-08-263-9/+17
| | | | | upcoming update (GH-27982) Also improve the build script for libffi, which is not used as part of the regular build.
* bpo-40635: Fix getfqdn() docstring and docs (GH-27971)andrei kulakov2021-08-262-4/+6
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45010: Remove support of special method __div__ in unittest.mock (GH-27965)Serhiy Storchaka2021-08-263-2/+4
|
* bpo-45001: Make email date parsing more robust against malformed input ↵wouter bolsterlee2021-08-263-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)Serhiy Storchaka2021-08-265-7/+13
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44967: pydoc: return non-zero exit code when query is not found (GH-27868)Gregory Anders2021-08-263-21/+25
|
* bpo-42238: [doc] Some more make suspicious false positives. (GH-27945)Julien Palard2021-08-261-0/+10
|
* bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951)Objectivitix2021-08-261-1/+1
|
* bpo-45000: Update whatsnews about deleting __debug__ (GH-27956)Dong-hee Na2021-08-262-2/+2
|
* bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922)Erlend Egeberg Aasland2021-08-251-3/+7
|
* bpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841)Ken Jin2021-08-252-1/+11
|
* bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)Dong-hee Na2021-08-254-0/+12
| | | Automerge-Triggered-By: GH:pablogsal
* bpo-44929: [Enum] Fix global repr (GH-27789)Pablo Galindo Salgado2021-08-253-15/+74
| | | | | | | | | | | | * Fix typo in __repr__ code * Add more tests for global int flag reprs * use last module if multi-module string - when an enum's `__module__` contains several module names, only use the last one Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)Erlend Egeberg Aasland2021-08-251-0/+1
|
* bpo-44946: Streamline operators and creation of ints for common case of ↵Mark Shannon2021-08-251-92/+160
| | | | single 'digit'. (GH-27832)
* bpo-44990: Change layout of evaluation frames. "Layout B" (GH-27933)Mark Shannon2021-08-258-100/+114
| | | Places the locals between the specials and stack. This is the more "natural" layout for a C struct, makes the code simpler and gives a slight speedup (~1%)
* Format the Python-tokenize module and fix exit path (GH-27935)Pablo Galindo Salgado2021-08-251-47/+46
|
* bpo-37596: Make `set` and `frozenset` marshalling deterministic (GH-27926)Brandt Bucher2021-08-253-0/+59
|
* bpo-27334: roll back transaction if sqlite3 context manager fails to commit ↵Erlend Egeberg Aasland2021-08-253-8/+102
| | | | | | (GH-26202) Co-authored-by: Luca Citi Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-44976: Lazy creation of sqlite3 result rows (GH-27884)Erlend Egeberg Aasland2021-08-252-58/+29
|
* bpo-39452: Rewrite and expand __main__.rst (#26883)Jack DeVries2021-08-245-17/+369
| | | | | | | 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>
* Add tests for the C tokenizer and expose it as a private module (GH-27924)Pablo Galindo Salgado2021-08-249-5/+1114
|
* bpo-42064: Pass module state to `sqlite3` UDF callbacks (GH-27456)Erlend Egeberg Aasland2021-08-242-31/+64
| | | | - Establish common callback context struct - Convert UDF callbacks to fetch module state from callback context
* bpo-43826: Fix resource warning due to unclosed objects. (GH-25381)Karthikeyan Singaravelan2021-08-241-0/+5
|
* bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int ↵Ammar Askar2021-08-244-11/+35
| | | | | | (GH-19708) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* bpo-44690: Adopt binacii.a2b_base64's strict mode in base64.b64decode (GH-27272)Idan Moral2021-08-233-3/+7
| | | | | | | * Use binascii.a2b_base64 to validate b64decode input. This change leads to exception messages changes (mostly). * Added more information to docstring of b64decode * Added a reference to binascii.a2b_base64 in the docs
* bpo-42560: simplify/merge architecture info in Tkinter docs (GH-27839)Mark Roseman2021-08-231-39/+9
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* [doc] Fix typo c-api/exceptions.rst (GH-27847)Sunny Bean2021-08-231-1/+1
| | | Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
* [doc] Added mailing list link for comp.lang.python (GH-27852)Mike Smith2021-08-231-1/+2
|
* bpo-42560: add warning to Tkinter docs about outdated pre-8.5 documentation ↵Mark Roseman2021-08-231-0/+7
| | | | | | online (GH-27836) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-44980: fix test_constructor to return None value (GH-27898)andrei kulakov2021-08-231-1/+1
|