Permalink
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
78
contributors
Commits on Jun 28, 2021
Commits on Jun 29, 2021
Commits on Jun 30, 2021
…[s] and marshal.dumps (GH-26971)
Commits on Jul 02, 2021
Commits on Jul 03, 2021
Commits on Jul 04, 2021
Commits on Jul 05, 2021
Commits on Jul 07, 2021
Commits on Jul 08, 2021
(cherry picked from commit af4a2dc) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Commits on Jul 10, 2021
Commits on Jul 12, 2021
Commits on Jul 13, 2021
Fix incorrect handling of exceptions when interpreting dialect objects in the csv module. Not clearing exceptions between calls to PyObject_GetAttrString() causes assertion failures in pydebug mode (or with assertions enabled). Add a minimal test that would've caught this (passing None as dialect, or any object that isn't a csv.Dialect subclass, which the csv module allows and caters to, even though it is not documented.) In pydebug mode, the test triggers the assertion failure in the old code. Contributed-By: T. Wouters [Google] (cherry picked from commit 0093876) Co-authored-by: T. Wouters <thomas@python.org>
Commits on Jul 14, 2021
…) (GH-27149) To my understanding, this is supposed to say "transaction". See the relevant source: https://github.com/python/cpython/blob/a158b20019b50e3ece6e4743ec4e6ae8d818b690/Modules/_sqlite/connection.cGH-L1434-L1467 (cherry picked from commit 1ca27f2) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com> Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Commits on Jul 15, 2021
…nviron on Windows (GH-27161) (#27170) GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test. (cherry picked from commit 82b218f) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
GH-27165) (GH-27175) The non-GC-type branch of subtype_dealloc is using the type of an object after freeing in the same unsafe way as GH-26274 fixes. (I believe the old news entry covers this change well enough.) https://bugs.python.org/issue44184 (cherry picked from commit 074e765) Co-authored-by: T. Wouters <thomas@python.org>
Fix a crash at Python exit when a deallocator function removes the last strong reference to a heap type. Don't read type memory after calling basedealloc() since basedealloc() can deallocate the type and free its memory. _PyMem_IsPtrFreed() argument is now constant. (cherry picked from commit 615069e) Co-authored-by: Victor Stinner <vstinner@python.org>
Commits on Jul 17, 2021
…low bugfix backports (#27193)
…H-27205) This fixes TypedDict to work with get_type_hints and postponed evaluation of annotations across modules. This is done by adding the module name to ForwardRef at the time the object is created and using that to resolve the globals during the evaluation. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Germán Méndez Bravo <german.mb@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Commits on Jul 18, 2021
The check was backwards so we were not correctly detecting removals.
Commits on Jul 19, 2021
Commits on Jul 20, 2021
Commits on Jul 21, 2021
Commits on Jul 22, 2021
…sly failing test methods (GH-27287) (GH-27293) * Move to a static argparse.Namespace subclass * Roughly annotate runtest.py * Refactor libregrtest to use lossless test result objects * Only re-run test methods that match names of previously failing test methods * Adopt tests to cover test method name matching Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>. (cherry picked from commit f1afef5) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Commits on Jul 23, 2021
Commits on Jul 24, 2021
Commits on Jul 25, 2021
Commits on Jul 26, 2021
…-27358) Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a40) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com> Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
"Mac OS X" has been rebranded as macOS https://www.apple.com/macos (cherry picked from commit 5fdd2a1) Co-authored-by: partev <petrosyan@gmail.com>
Commits on Jul 27, 2021
Commits on Jul 28, 2021
GH-27227) (GH-27400) * [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) * bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module *📜 🤖 Added by blurb_it. * remove "else" Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * If running as a module, first check that it can run as a module. Alternate fix for bpo-44461. Co-authored-by: Irit Katriel Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>. (cherry picked from commit ee03bad) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Ensure os_helper is imported. * Actually, os_helper doesn't exist yet. Just reference rmtree from support.
Commits on Jul 29, 2021
…27445) * rlcompleter was calling these methods to identify whether to add parenthesis to the completion, based on if the attribute is callable. * for property objects, completion with parenthesis are never desirable. * property methods with print statements behaved very strangely, which was especially unfriendly to language newcomers. <tab> could suddenly produce output unexpectedly. (cherry picked from commit 50de8f7) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Commits on Jul 30, 2021
Commits on Jul 31, 2021
(cherry picked from commit 4b4227b) Co-authored-by: Jesús Cea <jcea@jcea.es> Co-authored-by: Jesús Cea <jcea@jcea.es>
Commits on Aug 02, 2021
Commits on Aug 03, 2021
Commits on Aug 04, 2021
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 977d99d) Co-authored-by: Rohit Nishad <47008599+rohitnishad613@users.noreply.github.com>
Commits on Aug 06, 2021
… warnings (GH-26783) (GH-27629) * When trying to allocate very large regions on macOS, malloc does not fail silently. It sends a noisy error out to STDERR * This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS. Co-authored-by: Łukasz Langa <lukasz@langa.pl>. (cherry picked from commit 15d3c14) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Fix the os.set_inheritable() function on FreeBSD 14 for file descriptor opened with the O_PATH flag: ignore the EBADF error on ioctl(), fallback on the fcntl() implementation. (cherry picked from commit c24896c) Co-authored-by: Victor Stinner <vstinner@python.org>
Commits on Aug 07, 2021
Commits on Aug 08, 2021
Commits on Aug 09, 2021
Commits on Aug 10, 2021
Commits on Aug 11, 2021
Commits on Aug 12, 2021
Commits on Aug 13, 2021
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Commits on Aug 14, 2021
Commits on Aug 16, 2021
Commits on Aug 17, 2021
Commits on Aug 18, 2021
…27793) (GH-27810) 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 8cf07d3) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Commits on Aug 19, 2021
Commits on Aug 20, 2021
Commits on Aug 21, 2021
Commits on Aug 22, 2021
…t objects (GH-27831) (GH-27882) 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 a9640d7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
) (GH-27895) - 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 d5dbe8b) Co-authored-by: Mark Roseman <mark@markroseman.com>
GH-27896) - 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 d1049d1) Co-authored-by: Mark Roseman <mark@markroseman.com>
Commits on Aug 23, 2021
intially -> initially (cherry picked from commit 0e8695e) Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Commits on Aug 24, 2021
Commits on Aug 25, 2021
Commits on Aug 26, 2021
GH-27946) (GH-27973) 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 989f6a3) Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
Commits on Aug 27, 2021
Commits on Aug 28, 2021
…two threads attempt to commit the last pending removal (GH-27921) (GH-28014) 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 206b21e) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
…of nested blocks cpython-only (GH-28002) (GH-28017) 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 eb263f9) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Commits on Aug 29, 2021
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 3fc5d84) Co-authored-by: Victor Stinner <vstinner@python.org>
Commits on Aug 30, 2021
…aries when built on older macOS systems (GH-27251) (GH-28053) 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 71853a7) Co-authored-by: Tobias Bergkvist <tobias@bergkv.ist>
…est. (GH-28006) (GH-28071) * 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 08d9e59) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Showing you all comments on commits in this comparison.
This comment has been minimized.
This comment has been minimized.
|
Lib/http/client.py |
There are no files selected for viewing