summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] gh-91888: add a :gh: role to the documentation (GH-91889) (#91934)Ezio Melotti2022-04-261-0/+1
| | | | | | | | | | | | | | | | | | * gh-91888: Add a :gh: role to the documentation (GH-91889). * [3.10] gh-91888: add a `:gh:` role to the documentation (GH-91889) * Add a new :gh:`...` role for GitHub issues. * Fix a GitHub id to use the :gh: role. * Add Misc/NEWS entry. * Refactoring and rephrasing. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>. (cherry picked from commit f7641a2ffec243e5f600028a84debe9028a9ee44) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-91904: Fix setting envvar PYTHONREGRTEST_UNICODE_GUARD (GH-91905)Miss Islington (bot)2022-04-251-0/+2
| | | | | | It always failed on non-UTF-8 locale and prevented running regrtests. (cherry picked from commit 54d068adfbf2b822bcbf90dac9b3f6684cec0f99) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91547: Remove "Undocumented modules" page (GH-91682)Miss Islington (bot)2022-04-221-0/+1
| | | | | (cherry picked from commit 254aaa7981d8773658fb14795da5dec888c95f93) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-91575: Update case-insensitive matching in re to the latest ↵Serhiy Storchaka2022-04-221-0/+2
| | | | | | Unicode version (GH-91580). (GH-91661) (cherry picked from commit 1c2fcebf3c5e2ab41d376bb481834445617c8f3c)
* [3.10] gh-91700: Validate the group number in conditional expression in RE ↵Serhiy Storchaka2022-04-221-0/+4
| | | | | | | | | | (GH-91702) (GH-91831) In expression (?(group)...) an appropriate re.error is now raised if the group number refers to not defined group. Previously it raised RuntimeError: invalid SRE code. (cherry picked from commit 48ec61a89a959071206549819448405c2cea61b0)
* [3.10] gh-90568: Fix exception type for \N with a named sequence in RE ↵Serhiy Storchaka2022-04-221-0/+3
| | | | | | | (GH-91665) (GH-91830) re.error is now raised instead of TypeError. (cherry picked from commit 6ccfa31421393910b52936e0447625db06f2a655)
* bpo-40859: Update Windows build to use xz-5.2.5 (GH-20622)Steve Dower2022-04-201-0/+1
| | | Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
* gh-91734: Fix ossaudio support on Solaris (GH-91735)Miss Islington (bot)2022-04-201-0/+1
| | | | | (cherry picked from commit 4420faf273e9e2d03226a9375e1e04a336230c84) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* [3.10] gh-91118: Fix docstrings that do not honor --without-doc-strings ↵Oleg Iarygin2022-04-192-0/+14
| | | | | | | | | (GH-31769) (#91662) Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit a573cb2fec664c645ab744658d7e941d72e1a398) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* [3.10] gh-91676 gh-91260 unittest.IsolatedAsyncioTestCase no longer leaks ↵Gregory P. Smith2022-04-191-0/+4
| | | | | | | its executor (GH-91680) For things like test_asyncio.test_thread this was causing frequent "environment modified by test" errors as the executor threads had not always stopped running after the test was over.
* [3.10] gh-91607: Fix several test_concurrent_futures tests to actually test ↵Gregory P. Smith2022-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | what they claim (GH-91600) (#91612) * Fix test_concurrent_futures to actually test what it says. Many ProcessPoolExecutor based tests were ignoring the mp_context and using the default instead. This meant we lacked proper test coverage of all of them. Also removes the old _prime_executor() worker delay seeding code as it appears to have no point and causes 20-30 seconds extra latency on this already long test. It also interfered with some of the refactoring to fix the above to not needlessly create their own executor when setUp has already created an appropriate one. * Don't import the name from multiprocessing directly to avoid confusion. (cherry picked from commit 7fa3a5a2197896066e3fe53ee325ac6ab54c3414) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-91595: fix the comparison of character and integer by using ord() (GH-91596)Miss Islington (bot)2022-04-161-0/+1
| | | | | | | | | | * fix the comparison of character and integer by using ord() * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 9300b6d72948b94c0924a75ea14c6298156522d0) Co-authored-by: Yu Liu <yuki.liu@utexas.edu>
* gh-82849: revise intro to os.path.rst (GH-32232)Miss Islington (bot)2022-04-161-0/+3
| | | | | | | | | | * revise the first paragraph of docs for os.path * add a mention of `os.PathLike` protocol * remove warnings rendered irrelevant by :pep:`383` and :pep:`529` Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 468314cc8bfdb6fd328cbbbb7d0807728f25e043) Co-authored-by: Jack DeVries <jdevries3133@gmail.com>
* gh-88513: clarify shutil.copytree's dirs_exist_ok arg (GH-91434) (GH-91464)Miss Islington (bot)2022-04-151-0/+1
| | | | | | | * add a paragraph to document this kwarg in detail * update docstring in the source accordingly (cherry picked from commit f33e2c87a83917b5139d97fd8ef7cba7223ebef5) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-91421: Use constant value check during runtime (GH-91422) (GH-91492)Miss Islington (bot)2022-04-141-0/+1
| | | | | | | | | | | | | | | | The left-hand side expression of the if-check can be converted to a constant by the compiler, but the addition on the right-hand side is performed during runtime. Move the addition from the right-hand side to the left-hand side by turning it into a subtraction there. Since the values are known to be large enough to not turn negative, this is a safe operation. Prevents a very unlikely integer overflow on 32 bit systems. Fixes GH-91421. (cherry picked from commit 0859368335d470b9ff33fc53ed9a85ec2654b278) Co-authored-by: Tobias Stoeckmann <stoeckmann@users.noreply.github.com>
* bpo-47260: Fix os.closerange() potentially being a no-op in a seccomp ↵Miss Islington (bot)2022-04-081-0/+2
| | | | | | | | | | | | | | | | | | | | | sandbox (GH-32418) _Py_closerange() currently assumes that close_range() closes all file descriptors even if it returns an error (other than ENOSYS). This assumption can be wrong on Linux if a seccomp sandbox denies the underlying syscall, pretending that it returns EPERM or EACCES. In this case _Py_closerange() won't close any descriptors at all, which in the worst case can be a security issue. Fix this by falling back to other methods in case of any close_range() error. Note that fallbacks will not be triggered on any problems with closing individual file descriptors because close_range() is documented to ignore such errors on both Linux[1] and FreeBSD[2]. [1] https://man7.org/linux/man-pages/man2/close_range.2.html [2] https://www.freebsd.org/cgi/man.cgi?query=close_range&sektion=2 (cherry picked from commit 1c8b3b5d66a629258f1db16939b996264a8b9c37) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-47103: Copy pgort140.dll into output directory when building ↵Steve Dower2022-04-071-0/+2
| | | | PGInstrument on Windows (GH-32083)
* [3.10] Backport bpo-47212 (GH-32302) to Python 3.10 (GH-32334)Matthieu Dartiailh2022-04-051-0/+3
| | | | | | | | | (cherry picked from commit aa0f056a00c4bcaef83d729e042359ddae903382) # Conflicts: # Grammar/python.gram # Parser/action_helpers.c Automerge-Triggered-By: GH:pablogsal
* bpo-45790: List macros in same order in which fields are described (GH-29529)Miss Islington (bot)2022-04-051-0/+2
| | | | | | | | Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit b275267aa7d44ec90fa435c9cb1610c549da745a) Co-authored-by: rtobar <rtobar@icrar.org>
* bpo-41233: Add links to errnos referenced in exceptions docs (GH-21380)Miss Islington (bot)2022-04-052-0/+2
| | | | | | | Co-authored-by: Andrew Kuchling <amk@amk.ca> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit a74892cb2168d249d9a8c53fad605a5def9b41d4) Co-authored-by: yyyyyyyan <24644216+yyyyyyyan@users.noreply.github.com>
* bpo-46484:Add test for Calendar.iterweekdays (GH-30825)Miss Islington (bot)2022-04-041-0/+1
| | | | | (cherry picked from commit 48269ea9fdbc5804f80962364f95e69097c417ba) Co-authored-by: 180909 <734461790@qq.com>
* bpo-47205: Skip error check of sched_get/setaffinity on FreeBSD (GH-32285)Miss Islington (bot)2022-04-031-0/+2
| | | | | (cherry picked from commit b82cdd1dac9a9be52051abd90a1ce69236ac41f4) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 ↵Miss Islington (bot)2022-04-021-0/+1
| | | | | | | (GH-32241) (cherry picked from commit 6066739ff7794e54c98c08b953a699cbc961cd28) Co-authored-by: Zachary Ware <zach@python.org>
* [3.10] bpo-47182: Fix crash by named unicode characters after interpreter ↵Christian Heimes2022-04-011-0/+2
| | | | | reinitialization (GH-32212) (GH-32216) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-47151: Fallback to fork when vfork fails in subprocess. (GH-32186)Miss Islington (bot)2022-03-311-0/+3
| | | | | | bpo-47151: Fallback to fork when vfork fails in subprocess. An OS kernel can specifically decide to disallow vfork() in a process. No need for that to prevent us from launching subprocesses. (cherry picked from commit 4a08c4c469d36f99d3a5e0f17ad82ab35dcf2835) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-46775: OSError should call winerror_to_errno unconditionally on Windows ↵Miss Islington (bot)2022-03-311-0/+3
| | | | | | | (GH-32179) (cherry picked from commit d0c67ea0645b7ad37b867c167882a346a24de641) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-42340: Document issues around KeyboardInterrupt (GH-23255)Miss Islington (bot)2022-03-291-0/+3
| | | | | | | | Update documentation to note that in some circumstances, KeyboardInterrupt may cause code to enter an inconsistent state. Also document sample workaround to avoid KeyboardInterrupt, if needed. (cherry picked from commit d0906c90fcfbc4cfb9bb963eaa6bb152dd543b56) Co-authored-by: benfogle <benfogle@gmail.com>
* bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131)Miss Islington (bot)2022-03-281-0/+3
| | | | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 5c30388f3c586ba2f33e349e22e5949cb92de621) Co-authored-by: Vincent Bernat <vincent@bernat.ch>
* [3.10] bpo-44493: Add missing terminated NUL in sockaddr_un's length ↵Miss Islington (bot)2022-03-281-0/+3
| | | | | | | | | | | | | | (GH-26866) (GH-32140) Add missing terminated NUL in sockaddr_un's length - Linux: https://man7.org/linux/man-pages/man7/unix.7.html - *BSD: SUN_LEN (cherry picked from commit f6b3a07b7df60dc04d0260169ffef6e9796a2124) Co-authored-by: ty <zonyitoo@users.noreply.github.com> Automerge-Triggered-By: GH:gpshead
* bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32154)Hugo van Kemenade2022-03-281-0/+1
| | | | Co-authored-by: Maciej Olko <maciej.olko@gmail.com>
* [3.10] bpo-47117: Don't crash if we fail to decode characters when the ↵Pablo Galindo Salgado2022-03-261-0/+2
| | | | | | | | tokenizer buffers are uninitialized (GH-32129) (GH-32130) Automerge-Triggered-By: GH:pablogsal. (cherry picked from commit 26cca8067bf5306e372c0e90036d832c5021fd90) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Merge remote-tracking branch 'upstream/3.10' into 3.10Pablo Galindo2022-03-242-0/+6
|\
| * bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase ↵Miss Islington (bot)2022-03-231-0/+2
| | | | | | | | | | | | | | (GH-32086) (cherry picked from commit ff619c7dfe8dcb0e4c8dc655abc3acc7dc586d0d) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
| * [3.10] bpo-47101: list only activated algorithms in ↵Christian Heimes2022-03-231-0/+4
| | | | | | | | | | hashlib.algorithms_available (GH-32076) (GH-32085) Co-authored-by: Christian Heimes <christian@python.org>
* | Python 3.10.4v3.10.4Pablo Galindo2022-03-2312-27/+114
|/
* bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932)Miss Islington (bot)2022-03-221-0/+1
| | | | | | | | Co-authored-by: Piet Delport Co-authored-by: Hugo Lopes Tavares Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 7ba7eae50803b11766421cb8aae1780058a57e2b) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [3.10] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (#32047)Miss Islington (bot)2022-03-221-0/+1
| | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 32e77154ddfc514a3144d5912bffdd957246fd6c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.10] bpo-47061: document module deprecations due to PEP 594 (GH-31984) ↵Miss Islington (bot)2022-03-221-0/+5
| | | | | | | | | | | (GH-32039) Also removed asynchat, asyncore, and smtpd from their respective toctree entries so they are only in the superceded subtree. (cherry picked from commit 9ac2de922a0f783bd43b8e026e4fb70fd1888572) Co-authored-by: Brett Cannon <brett@python.org> Automerge-Triggered-By: GH:brettcannon
* bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012)Miss Islington (bot)2022-03-211-0/+1
| | | | | (cherry picked from commit 08eb754d840696914928355014c2d424131f8835) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013)Gregory P. Smith2022-03-201-0/+5
| | | | | Inputs >= 4GiB to `binascii.crc32(...)` when compiled to use the zlib crc32 implementation (the norm on POSIX) no longer return the wrong result.
* [3.10] bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 ↵Hugo van Kemenade2022-03-201-0/+4
| | | | | | | | (GH-31891) (#31997) Document the deprecation of asyncore, asynchat, and smtpd with a slated removal in Python 3.12 thanks to PEP 594.. (cherry picked from commit 77473846439b8a3eae66de1a1cfe931619f38513) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974)Miss Islington (bot)2022-03-201-0/+1
| | | | | | | | | | | | | The `_SharedFile` tracks its own virtual position into the file as `self._pos` and updates it after reading or seeking. `tell()` should return this position instead of calling into the underlying file object, since if multiple `_SharedFile` instances are being used concurrently on the same file, another one may have moved the real file position. Additionally, calling into the underlying `tell` may expose thread safety issues in the underlying file object because it was called without taking the lock. (cherry picked from commit e730ae7effe4f13b24f1b5fb1fca005709c86acb) Co-authored-by: Kevin Mehall <km@kevinmehall.net>
* bpo-39394: Improve warning message in the re module (GH-31988)Miss Islington (bot)2022-03-191-0/+2
| | | | | | | A warning about inline flags not at the start of the regular expression now contains the position of the flag. (cherry picked from commit 4142961b9f5ad3bf93976a6a7162f8049e354018) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976)Serhiy Storchaka2022-03-181-0/+1
| | | | (cherry picked from commit cd44afc573e2e2de8d7e5a9119c347373066cd10)
* [3.10] bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961). ↵Pablo Galindo Salgado2022-03-181-0/+3
| | | | | | | (GH-31974) (cherry picked from commit 8e3fde728f547f1d32bde8adf62b4c50bb877b9d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654)Miss Islington (bot)2022-03-182-0/+4
| | | | | (cherry picked from commit a0db11b10fca0fee6bb2b8d6277e266bad8c0fdb) Co-authored-by: Bader Zaidan <bader@zaidan.pw>
* Python 3.10.3v3.10.3Pablo Galindo2022-03-1692-194/+945
|
* [3.10] bpo-47032: Ensure Windows install builds fail correctly with a ↵Steve Dower2022-03-161-0/+2
| | | | | non-zero exit code when part of the build fails (GH-31921) (GH-31926) Automerge-Triggered-By: GH:zooba
* [3.10] bpo-47024: Update OpenSSL to 1.1.1n (GH-31895) (GH-31916)Christian Heimes2022-03-151-0/+1
| | | | Co-authored-by: Zachary Ware <zachary.ware@gmail.com>. Co-authored-by: Christian Heimes <christian@python.org>
* bpo-43253: Don't call shutdown() for invalid socket handles (GH-31892)Miss Islington (bot)2022-03-151-0/+1
| | | | | (cherry picked from commit 70155412f1543f100d4aa309b8691cbcabd3e0e1) Co-authored-by: Maximilian Hils <git@maximilianhils.com>