summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.0rc1v3.9.0rc1Łukasz Langa2020-08-1111-16/+0
|
* bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)Miss Islington (bot)2020-08-081-0/+1
| | | | | (cherry picked from commit a4084b9d1e40c1c9259372263d1fe8c8a562b093) Co-authored-by: Konge <zkonge@outlook.com>
* bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 ↵Steve Dower2020-08-071-0/+1
| | | | (GH-21774)
* bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)Miss Islington (bot)2020-08-051-0/+2
| | | | | (cherry picked from commit 8f4380d2f5839a321475104765221a7394a9d649) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)Miss Islington (bot)2020-08-041-0/+3
| | | | | | | | On Windows, fix asyncio recv_into() return value when the socket/pipe is closed (BrokenPipeError): return 0 rather than an empty byte string (b''). (cherry picked from commit 602a971a2af3a685d625c912c400cadd452718b1) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-41425: Make tkinter doc example runnable (GH-21706)Miss Islington (bot)2020-08-031-0/+1
| | | | | | Co-authored-by: Ankit Chandawala <achandaw@amazon.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit c36dbac588e1d99975f285a874bb20e9f5040af4)
* bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)Miss Islington (bot)2020-07-271-0/+2
| | | | | | | ... when an unknown option is passed. TypeError was being raised because a 2to3 fix was missing. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit f1d40f941a6483b1d4ea10f1051ace7b426fb8e7) Co-authored-by: Akuli <akuviljanen17@gmail.com>
* bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)Miss Islington (bot)2020-07-261-0/+1
| | | | | | | | | | | | | On some platform such as VMware ESXi, DefaultSelector fails to detect selector due to default value. This fix adds a check and uses the correct selector depending upon select implementation and actual call. Fixes: [bpo-41182]() Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit bcd47837a9bf4806e559b40df73869493efcce27) Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)Miss Islington (bot)2020-07-261-0/+1
| | | | | | | | The issue raised by recursive evaluation is infinite recursion with recursive types. In that case, only the first recursive ForwardRef is evaluated. (cherry picked from commit 653f420b53a3aa87316cef59de8d3f5d9e11deb4) Co-authored-by: wyfo <joperez@hotmail.fr>
* bpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)Berker Peksag2020-07-251-0/+1
|
* bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() ↵Miss Islington (bot)2020-07-231-0/+2
| | | | | | | (GH-21595) (cherry picked from commit 0dd98c2d00a75efbec19c2ed942923981bc06683) Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
* bpo-41364: Reduce import overhead of uuid module (GH-21586)Miss Islington (bot)2020-07-221-0/+1
| | | | | (cherry picked from commit bf2f76ec0976c09de79c8827764f30e3b6fba776) Co-authored-by: Steve Dower <steve.dower@python.org>
* Python 3.9.0b5v3.9.0b5Łukasz Langa2020-07-207-9/+0
|
* [3.9] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21482)Miss Islington (bot)2020-07-151-0/+1
| | | | | | | | | | Avoid infinite loop when reading specially crafted TAR files using the tarfile module (CVE-2019-20907). (cherry picked from commit 5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4) Co-authored-by: Rishi <rishi_devan@mail.com> Automerge-Triggered-By: @encukou
* bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458)Miss Islington (bot)2020-07-131-0/+2
| | | | | | Automerge-Triggered-By: @tiran (cherry picked from commit 4f309abf55f0e6f8950ac13d6ec83c22b8d47bf8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40597: Allow email.contextmanager set_content() to set a null string. ↵Miss Islington (bot)2020-07-081-0/+1
| | | | | | | (GH-20542) (cherry picked from commit 4fa61a7732923f92de0f7830c12da48c4cec937f) Co-authored-by: Mark Sapiro <mark@msapiro.net>
* closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() ↵Miss Islington (bot)2020-07-081-0/+1
| | | | | | | (GH-21385) (cherry picked from commit aebc0495572c5bb85d2bd97d27cf93ab038b5a6a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)Miss Islington (bot)2020-07-071-0/+1
| | | | | | Automerge-Triggered-By: @jaraco (cherry picked from commit 6ae2780be0667a8dc52c4fb583171ec86067d700) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-39168: Remove the __new__ method of typing.Generic (GH-21327)Miss Islington (bot)2020-07-051-0/+1
| | | | | | Automerge-Triggered-By: @gvanrossum (cherry picked from commit 7fed75597fac11f9a6c769e2b6c6548fe0e4049d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Merge tag 'v3.9.0b4' into 3.9Łukasz Langa2020-07-0322-35/+0
|\ | | | | | | Python 3.9.0b4
| * Python 3.9.0b4v3.9.0b4Łukasz Langa2020-07-0222-35/+0
| |
* | [3.9] bpo-41194: The _ast module cannot be loaded more than once (GH-21290) ↵Victor Stinner2020-07-031-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | (GH-21292) * bpo-41194: Pass module state in Python-ast.c (GH-21284) Rework asdl_c.py to pass the module state to functions in Python-ast.c, instead of using astmodulestate_global. Handle also PyState_AddModule() failure in init_types(). (cherry picked from commit 74419f0c64959bb8392fcf3659058410423038e1) * bpo-41194: The _ast module cannot be loaded more than once (GH-21290) Fix a crash in the _ast module: it can no longer be loaded more than once. It now uses a global state rather than a module state. * Move _ast module state: use a global state instead. * Set _astmodule.m_size to -1, so the extension cannot be loaded more than once. (cherry picked from commit 91e1bc18bd467a13bceb62e16fbc435b33381c82)
* bpo-41193: Ignore OSError in readline write_history() (GH-21279)Miss Islington (bot)2020-07-021-0/+4
| | | | | | | | The write_history() atexit function of the readline completer now ignores any OSError to ignore error if the filesystem is read-only, instead of only ignoring FileNotFoundError and PermissionError. (cherry picked from commit 0ab917e07ed64c6bfde6f6e791f9b28acc97b510) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.9] bpo-41043: Escape literal part of the path for glob(). (GH-20994). ↵Serhiy Storchaka2020-07-021-0/+2
| | | | | (GH-21275) (cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)
* bpo-40967: Remove deprecated asyncio.Task.current_task() and ↵Miss Islington (bot)2020-07-021-0/+2
| | | | | | | asyncio.Task.all_tasks() (GH-20874) (cherry picked from commit 004e64e8059fe68a72890314673282f2e60d5ce1) Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
* bpo-41161 Add news entry for libmpdec-2.5.0 (GH-21243) (#21244)Miss Islington (bot)2020-06-301-0/+2
| | | | | (cherry picked from commit 1648c99932f39f1c60972bb114e6a7bd65523818) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-41048: mimetypes should read the rule file using UTF-8, not the locale ↵Miss Islington (bot)2020-06-291-0/+2
| | | | | | | encoding (GH-20998) (cherry picked from commit 7f569c9bc0079906012b3034d30fe8abc742e7fc) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* bpo-40874 Update the required libmpdec version for the decimal module ↵Miss Islington (bot)2020-06-281-0/+1
| | | | | | | (GH-21202) (cherry picked from commit 8bea91b5e9ea07ca93958e131b436024f0b1b1cf) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)Miss Islington (bot)2020-06-281-0/+2
| | | | | | Fix also a resource warning when store counts and module info. (cherry picked from commit 04cdeb7a5617c48102f45b965e683b12cdf934f8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-41056: Fix a possible MemoryError leak within zoneinfo. (GH-21007)Paul Ganssle2020-06-241-0/+1
| | | | | | | | This was detected by our Coverity scan as a REVERSE_INULL issue. Automerge-Triggered-By: @gpshead (cherry picked from commit d780fa7) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.9] bpo-31938: Fix default-value signatures of several functions in the ↵Anthony Sottile2020-06-231-0/+1
| | | | | | | select module (GH-21066) (GH-21097) (cherry picked from commit d051801052211b533c46a593b1c1bccf649a171c) Automerge-Triggered-By: @vstinner
* bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)Miss Islington (bot)2020-06-221-0/+2
| | | | | (cherry picked from commit 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-26407: Do not mask errors in csv. (GH-20536)Miss Islington (bot)2020-06-221-0/+3
| | | | | | | | Unexpected errors in calling the __iter__ method are no longer masked by TypeError in csv.reader(), csv.writer.writerow() and csv.writer.writerows(). (cherry picked from commit c88239f864a27f673c0f0a9e62d2488563f9d081) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)Miss Islington (bot)2020-06-211-0/+1
| | | | | (cherry picked from commit 19fcffa92773e008e4f5efb80047420a0cfafeec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl ↵Miss Islington (bot)2020-06-211-0/+1
| | | | | | | | module. (GH-21009) Detected by Coverity. (cherry picked from commit eb0d5c38de7f970d8cd8524f4163d831c7720f51) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)Miss Islington (bot)2020-06-151-0/+1
| | | | | (cherry picked from commit 5f79f46612c351bde78a41c5264c42db21008868) Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
* bpo-40448: ensurepip: Do not use cache (GH-19812)Miss Islington (bot)2020-06-151-0/+2
| | | | | | | | | | | | | | | | | ensurepip optionally installs or upgrades 'pip' and 'setuptools' using the version of those modules bundled with Python. The internal PIP installation routine by default temporarily uses its cache, if it exists. This is undesirable as Python builds and installations may be independent of the user running the build, whilst PIP cache location is dependent on the user's environment and outside of the build environment. At the same time, there's no value in using the cache while installing bundled modules. This change disables PIP caching when used in ensurepip. (cherry picked from commit 4a3a682b12f93a03888e8b59f439bc5fe30d6055) Co-authored-by: Krzysztof Konopko <kkonopko@users.noreply.github.com>
* bpo-34226: fix cgi.parse_multipart without content_length (GH-8530)Miss Islington (bot)2020-06-151-0/+1
| | | | | | | | | | | | In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH header, this fix remove this header as required and fix FieldStorage read_lines_to_outerboundary, by not using limit when it's negative, since by default it's -1 if not content-length and keeps substracting what was read from the file object. Also added a test case for this problem. (cherry picked from commit d8cf3514dd4682419a66f6e834bb384ee34afc95) Co-authored-by: roger <rogerduran@gmail.com>
* [3.9] bpo-40924: Remove protocol for supplying Traversable objects from ↵Jason R. Coombs2020-06-141-0/+1
| | | | | loaders (GH-20820) Remove protocol that loaders can present a files method as found in importlib_resources 1.3-1.6 (added in Python 3.8b1).
* bpo-40855: Fix ignored mu and xbar parameters (GH-20835) (#GH-20862)Miss Islington (bot)2020-06-131-0/+2
|
* bpo-40834: Fix truncate when sending str object with channel (GH-20555)Miss Islington (bot)2020-06-131-0/+1
| | | | | (cherry picked from commit 29c117202e386bad1d66ae336e2fefa1a1809ee0) Co-authored-by: An Long <aisk@users.noreply.github.com>
* bpo-40955: Fix memory leak in subprocess module (GH-20825)Miss Islington (bot)2020-06-121-0/+1
| | | | | | | | | | | | | ``` Direct leak of 8 byte(s) in 1 object(s) allocated from: GH-0 0x7f008bf19667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667) GH-1 0x7f007a0bee4a in subprocess_fork_exec /home/heimes/dev/python/cpython/Modules/_posixsubprocess.c:774 GH-2 0xe0305b in cfunction_call Objects/methodobject.c:546 ``` Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 0d3350daa8123a3e16d4a534b6e873eb12c10d7c) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-40939: Generate keyword.py using the new parser (GH-20800)Miss Islington (bot)2020-06-111-0/+1
| | | | | (cherry picked from commit 9727694f08cad4b019d2939224e3416312b1c0e1) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." ↵Miss Islington (bot)2020-06-101-0/+1
| | | | | | | | (GH-20117) (GH-20780) * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)" This reverts commit b33e52511a59c6da7132c226b7f7489b092a33eb. (cherry picked from commit ec88e1bca81a167e6d5c0ac635e22f84298cb1df)
* Python 3.9.0b3v3.9.0b3Łukasz Langa2020-06-091-4/+0
|
* [3.9] bpo-40924: Revert "bpo-39791 native hooks for ↵Łukasz Langa2020-06-091-0/+4
| | | | | | importlib.resources.files (GH-20576)" (#20760) This reverts commit 9cf1be46e3692d565461afd3afa326d124d743dd due to https://bugs.python.org/issue40924.
* Python 3.9.0b2v3.9.0b2Łukasz Langa2020-06-0825-50/+0
|
* bpo-39791 native hooks for importlib.resources.files (GH-20576)Miss Islington (bot)2020-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Provide native .files support on SourceFileLoader. * Add native importlib.resources.files() support to zipimporter. Remove fallback support. * make regen-all * 📜🤖 Added by blurb_it. * Move 'files' into the ResourceReader so it can carry the relevant module name context. * Create 'importlib.readers' module and add FileReader to it. * Add zip reader and rely on it for a TraversableResources object on zipimporter. * Remove TraversableAdapter, no longer needed. * Update blurb. * Replace backslashes with forward slashes. * Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 843c27765652e2322011fb3e5d88f4837de38c06) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1. ↵Miss Islington (bot)2020-06-051-0/+1
| | | | | | | | | | | | | | (GH-20659) (GH-20661) * Refresh importlib.metadata from importlib_metadata 1.6.1. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 161541ab45278df6603dd870113b10f13e4d9e16) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-40807: Show warnings once from codeop._maybe_compile (GH-20486)Miss Islington (bot)2020-06-041-0/+2
| | | | | | | | | | | | * bpo-40807: Show warnings once from codeop._maybe_compile * Move catch_warnings * news Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 052d3fc0907be253cfd64b2c737a0b0aca586011) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>