summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Run Tools/scripts/reindent.py (#94225) (#94291)Victor Stinner2022-06-262-2/+1
| | | | | | | Reindent files which were not properly formatted (PEP 8: 4 spaces). Remove also some trailing spaces. (cherry picked from commit e87ada48a9e5d9d03f9759138869216df0d7383a)
* [doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140)Miss Islington (bot)2022-06-261-2/+2
| | | | | (cherry picked from commit 32d595fdcd4be8e1f41dcfe84ccf4de89fea3c3f) Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
* gh-83499: Fix closing file descriptors in tempfile (GH-93874)Miss Islington (bot)2022-06-263-64/+106
| | | | | (cherry picked from commit d4792ce916b94d090b6c7bce8b0f973e840c9e4e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259) (GH-94268)Miss Islington (bot)2022-06-261-2/+4
| | | | | | (cherry picked from commit 75cb3abc3bf10c7be3b374bfb4c060c36d251411) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)Miss Islington (bot)2022-06-251-2/+2
| | | | | (cherry picked from commit 9af6b75298d066e89646acf8df1704bef183a6f8) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-39971: Change examples to be runnable (GH-32172)Miss Islington (bot)2022-06-251-11/+18
| | | | | (cherry picked from commit c57a1c76d71075b14f6524b4681f29a3f1e88cb2) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.10] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) (#94273)Erlend Egeberg Aasland2022-06-255-122/+156
| | | | | | | Also add adapters and converter recipes. Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com. (cherry picked from commit bd3c1c187e0e4fde5aec6835d180e9eddde8ceb6)
* [3.10] gh-94245: Fix pickling and copying of typing.Tuple[()] (GH-94260)Serhiy Storchaka2022-06-252-1/+3
|
* [3.10] gh-94207: Fix struct module leak (GH-94239) (GH-94266)Miss Islington (bot)2022-06-253-2/+40
| | | | | | | | | | | | | | | | * gh-94207: Fix struct module leak (GH-94239) Make _struct.Struct a GC type This fixes a memory leak in the _struct module, where as soon as a Struct object is stored in the cache, there's a cycle from the _struct module to the cache to Struct objects to the Struct type back to the module. If _struct.Struct is not gc-tracked, that cycle is never collected. This PR makes _struct.Struct GC-tracked, and adds a regression test. (cherry picked from commit 6b865349aae47b90f9ef0b98f3fe3720c2f05601) Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* IDLE: replace if statement with expression (GH-94228)Miss Islington (bot)2022-06-241-6/+2
| | | | | (cherry picked from commit 91f9947f231cce2c72a3fb7b5c8e8cf49cc2c10f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` ↵Miss Islington (bot)2022-06-241-2/+2
| | | | | | | description (GH-92761) (cherry picked from commit a91ffcf3fa15ce3884f620c799566aa734412f9d) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-94205: Ensures all required DLLs are copied on Windows for underpth tests ↵Steve Dower2022-06-241-0/+2
| | | | (GH-94206)
* gh-93692: remove "build finished successfully" message from setup.py (GH-93693)Miss Islington (bot)2022-06-241-1/+0
| | | | | | | The message was only emitted when the build succeeded _and_ there were missing modules. (cherry picked from commit ab077d1e17032f84514292ae3fb8dee9bcfd2ce9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)Miss Islington (bot)2022-06-235-4/+5
| | | | | (cherry picked from commit d9301703fb1086cafbd730c17e3d450a192485d6) Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
* [3.10] gh-92858: Improve error message for some suites with syntax error ↵Pablo Galindo Salgado2022-06-234-310/+472
| | | | | | | | | before ':' (GH-92894). (#94183) (cherry picked from commit 2fc83ac3afa161578200dbf8d823a20e0801c0c0) Co-authored-by: wookie184 <wookie1840@gmail.com> Co-authored-by: wookie184 <wookie1840@gmail.com>
* gh-84623: Remove unused imports in idlelib (GH-94143) (#94148)Miss Islington (bot)2022-06-233-17/+7
| | | | | | | | | | Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 576dd901170af30fc50b0a7f07a388b38fd724a9) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-92888: Fix memoryview bad `__index__` use after free (GH-92946) (GH-93950)Ken Jin2022-06-233-19/+139
| | | | | | (cherry picked from commit 11190c4ad0d3722b8d263758ac802985131a5462) Co-authored-by: chilaxan <35645806+chilaxan@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
* Closes gh-94152: Update pyvideo.org URL (GH-94075)Miss Islington (bot)2022-06-231-1/+1
| | | | | | The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect. (cherry picked from commit 7c439dca13435085efb2fddf9ac75e5305db7ada) Co-authored-by: partev <petrosyan@gmail.com>
* [3.10] Add an error message to the ABI-dump file check (#94131)Pablo Galindo Salgado2022-06-221-1/+10
|
* gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)Miss Islington (bot)2022-06-221-4/+1
| | | | | | * gh-94114 (cherry picked from commit 8661c5053fbe3e246289d77e49a813470b3a16f7) Co-authored-by: partev <petrosyan@gmail.com>
* gh-91172: Create a workflow for verifying bundled pip and setuptools ↵Miss Islington (bot)2022-06-223-0/+128
| | | | | | | | | (GH-31885) (GH-94122) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit d36954b7ead06daead3dcf9b0dd9f8002eab508f) Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
* gh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary ↵Miss Islington (bot)2022-06-223-0/+21
| | | | | | | | importers. (GH-93962) (GH-94119) Co-authored-by: Brett Cannon <brett@python.org> (cherry picked from commit c029b552f39200977325d4351803bdd13ddccc4f) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Fix typo in _io.TextIOWrapper Clinic input (GH-94037) (GH-94117)Miss Islington (bot)2022-06-221-2/+2
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit ca308c13daa722f3669a14f1613da768086beb6a) Co-authored-by: fikotta <81991278+fikotta@users.noreply.github.com>
* gh-94101 Disallow instantiation of SSLSession objects (GH-94102)Miss Islington (bot)2022-06-222-1/+5
| | | | | | | | Fixes GH-94101 Automerge-Triggered-By: GH:tiran (cherry picked from commit dc8e1d0390e16e90b2f74f6bd6417324a357bc23) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
* gh-74696: Do not change the current working directory in ↵Miss Islington (bot)2022-06-224-52/+106
| | | | | | | | | | | | | | shutil.make_archive() if possible (GH-93160) (GH-94106) It is no longer changed when create a zip or tar archive. It is still changed for custom archivers registered with shutil.register_archive_format() if root_dir is not None. Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit fda4b2f06364ae5ef91ecd9c09e2af380c8b0b4c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94090)Miss Islington (bot)2022-06-222-2/+2
| | | | | (cherry picked from commit 0709586744ec58dd60492e16b08fff6dc1149a0a) Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
* [3.10] GH-93964: Harden overflow checks before _PyBytes_Resize in compile.c ↵Dennis Sweeney2022-06-222-5/+22
| | | | (GH-94045)
* bpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098) ↵Miss Islington (bot)2022-06-211-1/+2
| | | | | | | | | | (GH-94100) Co-authored-by: Windson yang <wiwindson@outlook.com> (cherry picked from commit 6575841266b83f3121c188695c7513e551ade034) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-87389: Fix an open redirection vulnerability in http.server. (GH-93879)Miss Islington (bot)2022-06-213-2/+61
| | | | | | | | | | | Fix an open redirection vulnerability in the `http.server` module when an URI path starts with `//` that could produce a 301 Location header with a misleading target. Vulnerability discovered, and logic fix proposed, by Hamza Avvan (@hamzaavvan). Test and comments authored by Gregory P. Smith [Google]. (cherry picked from commit 4abab6b603dd38bec1168e9a37c40a48ec89508e) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)Miss Islington (bot)2022-06-213-2/+10
| | | | | | | | Because of the way wrap_descr_get is written, the second argument to __get__ methods implemented through the wrapper is always optional. (cherry picked from commit 4e08fbcfdfa57ea94091aabdd09413708e3fb2bf) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Tutorial: specify match cases don't fall through (GH-93615) (GH-94084)Miss Islington (bot)2022-06-211-2/+4
| | | | | (cherry picked from commit dd5cf84f245abf84405833320b8f25dbc43b24d2) Co-authored-by: max <36980911+pr2502@users.noreply.github.com>
* gh-93240: clarify wording in IO tutorial (GH-93276) (GH-94081)Miss Islington (bot)2022-06-211-1/+1
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit 51d673176ac90f2144e3e7a492e5b3ea53bdba2e) Co-authored-by: paulreece <96156234+paulreece@users.noreply.github.com>
* [3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)Łukasz Langa2022-06-212-2/+2
| | | | | | Closes GH-93675 (cherry picked from commit 830513754d081619b2d72db17770627312072fa5) Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
* [3.10] gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94078)Łukasz Langa2022-06-2128-47/+58
| | | | | | (cherry picked from commit f62ff97f31a775cc7956adeae32c14e7c85bdc15) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* [3.10] gh-79512: Fixed names and __module__ value of weakref classes ↵Serhiy Storchaka2022-06-213-3/+17
| | | | | | | | | | (GH-93719) (GH-94071) Classes ReferenceType, ProxyType and CallableProxyType have now correct atrtributes __module__, __name__ and __qualname__. It makes them (types, not instances) pickleable. (cherry picked from commit 8352e322e87ba39c71e578b65ad8ae156ca3e0c7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91387: Strip trailing slash from tarfile longname directories (GH-32423)Miss Islington (bot)2022-06-213-0/+28
| | | | | | Co-authored-by: Brett Cannon <brett@python.org> (cherry picked from commit c1e19421c23d1261ecbbe7375316adc1c24f0a87) Co-authored-by: Chris Fernald <chrisf671@gmail.com>
* gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)Miss Islington (bot)2022-06-2111-52/+18
| | | | | | | | | | | | * Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)" This reverts commit 5c1f15b4b1024cbf0acc85832f0c623d1a4605fd * Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)" This reverts commit b63a620014b67a6e63d10783149c41baaf59def8. (cherry picked from commit 0efe3a1636c143fe0694a8e4d25d6eae19e0d618) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-90539: doc: Expand on what should not go into CFLAGS, LDFLAGS (GH-92754)Miss Islington (bot)2022-06-201-0/+18
| | | | | (cherry picked from commit 61f24e7885bed096b5d7f75aff13c1001994b35a) Co-authored-by: Matthias Köppe <mkoeppe@math.ucdavis.edu>
* gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025)Victor Stinner2022-06-204-5/+9
| | | | | (cherry picked from commit 774ef28814d0d9d57ec813cb31b0a7af6c476127) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] gh-79009: sqlite3.iterdump now correctly handles tables with ↵Miss Islington (bot)2022-06-204-1/+61
| | | | | | | | autoincrement (GH-9621) (#94015) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit affa9f22cfd1e83a5fb413e5ce2feef9ea1a49ac) Co-authored-by: itssme <itssme3000@gmail.com>
* gh-61162: Clarify sqlite3 connection context manager docs (GH-93890)Miss Islington (bot)2022-06-192-4/+19
| | | | | | | | | | | | | Explicitly note that transactions are only closed if there is an open transation at `__exit__`, and that transactions are not implicitly opened during `__enter__`. Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:erlend-aasland (cherry picked from commit 8e0897814109765a9e463676413fff016875217b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-93925: Improve clarity of sqlite3 commit/rollback, and close docs ↵Erlend Egeberg Aasland2022-06-193-19/+30
| | | | | | | | (GH-93926) (#94011) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>. (cherry picked from commit 6446592c89b0c581c00e170ae6278291e940755c) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* GH-93990: fix refcounting bug in `add_subclass` in `typeobject.c` (GH-93989) ↵Kumar Aditya2022-06-191-1/+4
| | | | | (GH-93999) (cherry picked from commit 726448ebe15cd78e180c29c9858cb6c10a581524)
* What's new in 3.10: fix link to issue (GH-93968)Miss Islington (bot)2022-06-191-1/+1
| | | | | | | | | | | | * What's new in 3.10: fix link to issue * What's new in 3.10: fix link to GH issue Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 59c1b33805fe553fe6a157ae9b346153b96f7ff1) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* GH-83658: make multiprocessing.Pool raise an exception if maxtasksperchild ↵Miss Islington (bot)2022-06-173-0/+9
| | | | | | | | | | is not None or a positive int (GH-93364) (GH-93924) Closes GH-83658. (cherry picked from commit e37a158725dec561f234b81864363d55f05c7b4e) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)Miss Islington (bot)2022-06-171-1/+1
| | | | | (cherry picked from commit 538f28921f67e36617272faa662375d305d9284c) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (#92338) ↵Kumar Aditya2022-06-161-0/+4
| | | | | | | | (#93805) - Amend docs for WriteTransport.get_write_buffer_limits - Add docs for WriteTransport.get_write_buffer_size Co-authored-by: Sanket Shanbhag <TechieBoy@users.noreply.github.com>
* gh-91810: Fix regression with writing an XML declaration with ↵Miss Islington (bot)2022-06-163-20/+10
| | | | | | | | | | | | encoding='unicode' (GH-93426) (GH-93790) Suppress writing an XML declaration in open files in ElementTree.write() with encoding='unicode' and xml_declaration=None. If file patch is passed to ElementTree.write() with encoding='unicode', always open a new file in UTF-8. (cherry picked from commit d7db9dc3cc5b44d0b4ce000571fecf58089a01ec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91577: SharedMemory move imports out of methods (GH-91579)Miss Islington (bot)2022-06-162-4/+4
| | | | | | | | | | SharedMemory.unlink() uses the unregister() function from resource_tracker. Previously it was imported in the method, but this can fail if the method is called during interpreter shutdown, for example when unlink is part of a __del__() method. Moving the import to the top of the file, means that the unregister() method is available during interpreter shutdown. The register call in SharedMemory.__init__() can also use this imported resource_tracker. (cherry picked from commit 9a458befdd68625d088f4fea7df135a57d147deb) Co-authored-by: samtygier <samtygier@yahoo.co.uk>
* [3.10] gh-93735: Split Docs CI to speed-up the build (GH-93736) (GH-93833)Adam Turner2022-06-161-7/+35
| | | | | (cherry picked from commit 4f26963526f386bba84de8e14962163bfd5da955) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>