summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-95731: Fix module docstring extraction in pygettext (GH-95732)Miss Islington (bot)2022-10-151-0/+20
| | | | | (cherry picked from commit 120b4ab2b68aebf96ce0de243eab89a25fc2d282) Co-authored-by: Jakub Kuczys <me@jacken.men>
* gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip ↵Miss Islington (bot)2022-10-142-13/+23
| | | | | | | when they do not impact path resolution (GH-98259) (cherry picked from commit 2fe44f728afa2dd506c304641f0481d6813d1dbd) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)Miss Islington (bot)2022-10-132-4/+23
| | | | | | | Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de> Co-authored-by: July Tikhonov <july.tikh@gmail.com> (cherry picked from commit c9ed0327a9c741a1808926b409df29467baf303a) Co-authored-by: Christoph Hamsen <37963496+xopham@users.noreply.github.com>
* Python 3.10.8v3.10.8Pablo Galindo2022-10-111-6/+22
|
* [3.10] bpo-43564: preserve original exception in args of FTP URLError ↵Senthil Kumaran2022-10-101-2/+1
| | | | | | | | | | | | | | (GH-24938) (#98138) * bpo-43564: preserve original error in args of FTP URLError * Add NEWS blurb Co-authored-by: Carl Meyer <carljm@instagram.com>. (cherry picked from commit ad817cd5c44416da3752ebf9baf16d650703275c) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.10] gh-94808: Cover `PyObject_PyBytes` case with custom `__bytes__` ↵Nikita Sobolev2022-10-091-0/+20
| | | | | | | | | method (GH-96610) (#98121) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>. Co-authored-by: Nikita Sobolev <mail@sobolevn.me> (cherry picked from commit e39ae6bef2c357a88e232dcab2e4b4c0f367544b)
* [3.10] Add more syslog tests (GH-97953). (GH-98101)Serhiy Storchaka2022-10-093-6/+96
| | | | (cherry picked from commit cae7d1d7a713f8267daf5e4f2fff5cb1dad02c7c)
* gh-92886: make test_ast pass with -O (assertions off) (GH-98058)Miss Islington (bot)2022-10-081-1/+1
| | | | | | | | -O does not strip docstrings. Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 27ce45d8e105d0c9f9286c3cab830590d4c7cea3) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)Miss Islington (bot)2022-10-081-1/+1
| | | | | | Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 45f21472daad3934baf364c3100063ecc51c6e04) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-57179: Add note on symlinks for os.walk (GH-94799)Miss Islington (bot)2022-10-081-1/+2
| | | | | (cherry picked from commit 0f498f1a95306995ca1e287f552c5c3d856be02d) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.10] gh-94808: Cover `%p` in `PyUnicode_FromFormat` (GH-96677) (#98032)Miss Islington (bot)2022-10-071-0/+19
| | | | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 72c166add89a0cd992d66f75ce94eee5eb675a99)
* GH-96073: Fix wild replacement in inspect.formatannotation (GH-96074)Miss Islington (bot)2022-10-074-1/+25
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit d5fea01d9d439b1638cd8e5db19c33909841d86f) Co-authored-by: Anh71me <iyumelive@gmail.com>
* gh-65496: Correct wording on csv's skipinitialspace argument (GH-96170)Miss Islington (bot)2022-10-071-0/+5
| | | | | (cherry picked from commit 676d8ef3806758bcd1d3fd84a746c8a9b64480d0) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* Add note on capture_output arg to subprocess.run() docstring (GH-98012)Miss Islington (bot)2022-10-071-1/+2
| | | | | | add note on capture_output arg to the docstring (cherry picked from commit 80b3e32d6242c27094dd04c4c3d0c3d3b2889a01) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* [3.10] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK ↵Miss Islington (bot)2022-10-061-0/+22
| | | | | | | | | | | | | (GH-97944) (#97967) The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls. Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a segfault if cpython is built with the macOS 13 SDK but run on an earlier version of macOS. Prevent this by adding runtime support for detection of these system calls ("weaklinking") as is done for other newer syscalls on macOS. (cherry picked from commit 6d0a0191a4e5477bd843e62c24d7f3bcad4fd5fc) Co-authored-by: Ned Deily <nad@python.org>
* [3.10] Fix type annotation of `pstats.FunctionProfile.ncalls` (GH-96741) ↵Miss Islington (bot)2022-10-051-1/+1
| | | | | | | | (#96836) This change aligns the type annotation of `pstats.FunctionProfile.ncalls` with its runtime type. (cherry picked from commit 8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11) Co-authored-by: Ruan Comelli <ruancomelli@gmail.com>
* gh-91539: improve performance of get_proxies_environment (GH-91566)Miss Islington (bot)2022-10-051-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * improve performance of get_proxies_environment when there are many environment variables * 📜🤖 Added by blurb_it. * fix case of short env name * fix formatting * fix whitespace * whitespace * Update Lib/urllib/request.py Co-authored-by: Carl Meyer <carl@oddbird.net> * Update Lib/urllib/request.py Co-authored-by: Carl Meyer <carl@oddbird.net> * Update Lib/urllib/request.py Co-authored-by: Carl Meyer <carl@oddbird.net> * Update Lib/urllib/request.py Co-authored-by: Carl Meyer <carl@oddbird.net> * whitespace * Update Misc/NEWS.d/next/Library/2022-04-15-11-29-38.gh-issue-91539.7WgVuA.rst Co-authored-by: Carl Meyer <carl@oddbird.net> * Update Lib/urllib/request.py Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Carl Meyer <carl@oddbird.net> (cherry picked from commit aeb28f51304ebe2ad9fd6a61b6e4e5a03d288aa1) Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* gh-95196: Disable incorrect pickling of the C implemented classmethod ↵Miss Islington (bot)2022-10-051-0/+18
| | | | | | | descriptors (GH-96383) (cherry picked from commit 77f0249308de76401bf4f3c6a057789c92f862d1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-97825: fix AttributeError when calling ↵Miss Islington (bot)2022-10-052-1/+8
| | | | | | | | subprocess.check_output(input=None) with encoding or errors args (GH-97826) * fix AttributeError, add unit test (cherry picked from commit db64fb9bbe92b212db7dd173f787ea3607ae971a) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* gh-97639: Remove `tokenize.NL` check from `tabnanny` (GH-97640)Miss Islington (bot)2022-10-041-2/+0
| | | | | | | | | | * gh-97639: Remove `tokenize.NL` check from `tabnanny` * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 06016845dcca1d444a6db6d70ce9fe6274d551d3) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Document that MozillaCookieJar works for curl's cookie files (GH-91852)Miss Islington (bot)2022-10-031-1/+1
| | | | | | MozillaCookieJar works for curl's cookies (cherry picked from commit 0ea8b925d096629852d1045c2c53ff6ad63199cc) Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
* gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (GH-97765)Miss Islington (bot)2022-10-031-3/+4
| | | | | | Ensure that the event loop's `_thread_id` attribute and the asyncgen hooks set by `sys.set_asyncgen_hooks()` are always restored no matter where a KeyboardInterrupt exception is raised. (cherry picked from commit 3a49dbb98ccc1b90554ed181386316efa38adfba) Co-authored-by: hetmankp <728670+hetmankp@users.noreply.github.com>
* [3.10] gh-97728: Argument Clinic: Fix uninitialized variable in the ↵Serhiy Storchaka2022-10-031-6/+6
| | | | | | | | Py_UNICODE converter (GH-97729) (GH-97760) It affects function os.system() on Windows and Windows-specific modules winreg, _winapi, _overlapped, and _msi. (cherry picked from commit 0ee9619a4cba58730c45e65d22288fadbf7680de)
* gh-96819: multiprocessing.resource_tracker: check if length of pipe write <= ↵Miss Islington (bot)2022-10-032-2/+10
| | | | | | | | 512 (GH-96890) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 19ca114645bd8796cf4094e152b1fa9944da473d) Co-authored-by: Koki Saito <49419225+saito828koki@users.noreply.github.com>
* gh-97591: In `Exception.__setstate__()` acquire strong references before ↵Miss Islington (bot)2022-10-021-0/+25
| | | | | | | calling `tp_hash` slot (GH-97700) (cherry picked from commit d63943860974f232b5f027dc6535d25d1b4d8fc0) Co-authored-by: Ofey Chan <ofey206@gmail.com>
* gh-95588: Drop the safety claim from `ast.literal_eval` docs. (GH-95919)Miss Islington (bot)2022-10-021-1/+3
| | | | | | It was never really safe and this claim conflicts directly with the big warning in the docs about it being able to crash the interpreter. (cherry picked from commit 8baef8ae367041a5cfefb40b19c7b87e9bcb56a2) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* GH-97592: Fix crash in C remove_done_callback due to evil code (GH-97660)Miss Islington (bot)2022-09-301-0/+15
| | | | | | Evil code could cause fut_callbacks to be cleared when PyObject_RichCompareBool is called. (cherry picked from commit 63780f4599acc2c5ee8af5f37ab76c162ad21065) Co-authored-by: Guido van Rossum <guido@python.org>
* GH-96827: Don't touch closed loops from executor threads (GH-96837)Miss Islington (bot)2022-09-302-2/+6
| | | | | | | * When chaining futures, skip callback if loop closed. * When shutting down an executor, don't wake a closed loop. (cherry picked from commit e9d63760fea8748638f6e495b5b07bd1805c9591) Co-authored-by: Guido van Rossum <guido@python.org>
* bpo-35675: IDLE - separate config_key window and frame (GH-11427)Miss Islington (bot)2022-09-304-82/+174
| | | | | | | | bpo-35598: IDLE: Refactor window and frame class Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 1cc308d03c1b44a0885a3c5f07d0786b49ea711d) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* gh-91212: Fixed flickering when the tracer is turned off (GH-95129)Miss Islington (bot)2022-09-292-2/+1
| | | | | | Fixed flickering when the tracer is turned off. (cherry picked from commit 4652093e1b816b78e9a585d671a807ce66427417) Co-authored-by: Shin-myoung-serp <relent95@naver.com>
* gh-97616: list_resize() checks for integer overflow (GH-97617)Miss Islington (bot)2022-09-281-0/+13
| | | | | | | | | | | Fix multiplying a list by an integer (list *= int): detect the integer overflow when the new allocated length is close to the maximum size. Issue reported by Jordan Limor. list_resize() now checks for integer overflow before multiplying the new allocated length by the list item size (sizeof(PyObject*)). (cherry picked from commit a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf) Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix typo in error message in plistlib (GH-97540)Miss Islington (bot)2022-09-281-1/+1
| | | | | (cherry picked from commit 81b9d9ddc20837ecd19f41b764e3f33d8ae805d5) Co-authored-by: Jakob Weigert <jakobjw@users.noreply.github.com>
* gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547)Miss Islington (bot)2022-09-275-3/+54
| | | | | | | | Previously, checkbuttons in different parent widgets could have the same short name and share the same state if arguments "name" and "variable" are not specified. Now they are globally unique. (cherry picked from commit adbed2d542a815b8175db965742211856b19b52f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-97545: Make Semaphore run faster. (GH-97549)Miss Islington (bot)2022-09-262-23/+18
| | | | | (cherry picked from commit 68c46ae68b6e0c36a12e37285fff9ce0782ed01e) Co-authored-by: Cyker Way <cykerway@gmail.com>
* gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)Miss Islington (bot)2022-09-261-0/+2
| | | | | | | | Fix command line parsing: reject "-X int_max_str_digits" option with no value (invalid) when the PYTHONINTMAXSTRDIGITS environment variable is set to a valid limit. (cherry picked from commit 41351662bcd21672d8ccfa62fe44d72027e6bcf8) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-94808: Coverage: Test uppercase string literal prefixes (GH-95925)Miss Islington (bot)2022-09-251-0/+7
| | | | | (cherry picked from commit f00383ec9bb9452fd9d5f5003f123e68fc4a71d8) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* gh-96052: codeop: fix handling compiler warnings in incomplete input (GH-96132)Miss Islington (bot)2022-09-252-13/+33
| | | | | | | | | Previously codeop.compile_command() emitted compiler warnings (SyntaxWarning or DeprecationWarning) and raised a SyntaxError for incomplete input containing a potentially incorrect code. Now it always returns None for incomplete input without emitting any warnings. (cherry picked from commit 426d72e7ddb0af5cf851914ac75127186dd1ff04) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Miss Islington (bot)2022-09-259-43/+43
| | | | | (cherry picked from commit db39050396a104c73d0da473a2f00a62f9dfdfaa) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-97527: IDLE: protect macosx Tk() call when no GUI (GH-97530)Miss Islington (bot)2022-09-241-13/+17
| | | | | | | | Only call tkinter.tk and its follow-up code in _init_tk_type when requires('gui') does not raise. This function can be called as an unintended side-effect of calling other idlelib code as part of tests on macOS without a GUI enabled. (cherry picked from commit 9704f8da333a51da32318f16106d45abb20fab76) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-85760: Fix race in calling process_exited callback too early (GH-97009)Miss Islington (bot)2022-09-221-1/+2
| | | | | (cherry picked from commit 282edd7b2a74c4dfe1bfe3c5b1d30f9c21d554d6) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (GH-93222)Miss Islington (bot)2022-09-222-22/+142
| | | | | | | | | | | The main problem was that an unluckily timed task cancellation could cause the semaphore to be stuck. There were also doubts about strict FIFO ordering of tasks allowed to pass. The Semaphore implementation was rewritten to be more similar to Lock. Many tests for edge cases (including cancellation) were added. (cherry picked from commit 24e03796248ab8c7f62d715c28156abe2f1c0d20) Co-authored-by: Cyker Way <cykerway@gmail.com>
* [3.10] gh-96954: Add tests for unicodedata.name/lookup (GH-96955) (GH-96992)Łukasz Langa2022-09-211-0/+7
| | | | | | | | | | They were undertested, and since GH-96954 might involve a rewrite of this part of the code we want to ensure that there won't be any behavioral change. Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> (cherry picked from commit 5a32eeced2c537c13613dd4ff5b2767a37037294) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* gh-90808: add more examples to `test_sched.test_priority` (GH-31144)Miss Islington (bot)2022-09-211-4/+17
| | | | | (cherry picked from commit 57463d43dc4277a1f4d33bd003567e947c937cf5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] GH-95921: Fix positions for some chained comparisons (GH-96968) ↵Brandt Bucher2022-09-201-0/+32
| | | | | | | (GH-96974) (cherry picked from commit dfc73b57247aac575c83055d960c03bdc28b51fd) Automerge-Triggered-By: GH:brandtbucher
* [3.10] GH-96864: Check for error between line and opcode events (GH-96969)Brandt Bucher2022-09-201-0/+14
| | | (cherry picked from commit c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c)
* [3.10] gh-68966: Make mailcap refuse to match unsafe filenames/types/params ↵Miss Islington (bot)2022-09-202-4/+30
| | | | | | | | | | (GH-91993) (GH-93543) * gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993) (cherry picked from commit b9509ba7a9c668b984dab876c7926fe1dc5aa0ba) * Add a What's New entry for 3.10.8. Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.10] gh-96861: Check for unset sys.executable during venv creation. ↵Miss Islington (bot)2022-09-181-0/+5
| | | | | | | | | (GH-96887) (GH-96918) (cherry picked from commit 2cd70ffb3fe22d778d0bb6ec220fdf67dccc1be6) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* gh-87179: Fix more IDLE class headers (GH-96899)Miss Islington (bot)2022-09-172-2/+2
| | | | | | Remove unneeded '(object)' and '()'. (cherry picked from commit aa671b48d62a00c5ab87fb102be15dd5eeac84dd) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-94972: document that shield users need to keep a reference to their task ↵Miss Islington (bot)2022-09-101-2/+9
| | | | | | | | | (GH-96724) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> (cherry picked from commit 6281affee6423296893b509cd78dc563ca58b196) Co-authored-by: Hendrik Makait <hendrik.makait@gmail.com>
* gh-96710: Make the test timing more lenient for the int/str DoS regression ↵Miss Islington (bot)2022-09-091-6/+8
| | | | | | | | | | | | test. (GH-96717) A regression would still absolutely fail and even a flaky pass isn't harmful as it'd fail most of the time across our N system test runs. Windows has a low resolution timer and CI systems are prone to odd timing so this just gives more leeway to avoid flakiness. (cherry picked from commit 11e3548fd1d3445ccde971d613633b58d73c3016) Co-authored-by: Gregory P. Smith <greg@krypto.org>