aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration ↵backport-e35ca41-3.11Sam James2022-12-013-48/+57
| | | | | | | | | warnings in configure.ac (GH-99406) Follow up to 12078e78f6e4a21f344e4eaff529e1ff3b97734f. (cherry picked from commit e35ca417fe81a64985c2b29e863ce418ae75b96e) Co-authored-by: Sam James <sam@gentoo.org>
* gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194)Miss Islington (bot)2022-11-303-0/+4
| | | | | | | | (cherry picked from commit 367f552129341796d75fc4cc40edb49405235a2b) Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org> Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.11] GH-98906 ```re``` module: ```search() vs. match()``` section should ↵Miss Islington (bot)2022-11-301-6/+12
| | | | | | | | | | | | mention ```fullmatch()``` (GH-98916) (GH-99912) GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916) Mention fullmatch along with search and match. (cherry picked from commit e0f91deb5930ecb02e7f8ced9bd82609e6889fb0) Co-authored-by: ram vikram singh <ramvikrams243@gmail.com> Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
* bpo-47220: Document the optional callback parameter of weakref.WeakMethod ↵Miss Islington (bot)2022-11-302-2/+6
| | | | | | | (GH-25491) (cherry picked from commit 9628136fac997847b4662e6a17faf06d2a0507eb) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* gh-82836: fix private network check (GH-97733)Miss Islington (bot)2022-11-293-4/+50
| | | | | | Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0". (cherry picked from commit ed391090cc8332406e6225d40877db6ff44a7104) Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
* Docs: improve accuracy of socketserver reference (GH-24767)Miss Islington (bot)2022-11-291-7/+3
| | | | | (cherry picked from commit 052bc128ac0bcafd36a0cbee5f4c2a10d74468dc) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* whatsnew-3.10: Mention PEP 647 in the Release highlights section. (GH-99853)Miss Islington (bot)2022-11-291-1/+2
| | | | | | | | Mention PEP 647 in the Release highlights section. Also re-ordered the list so it matches the order in the details sections below. (cherry picked from commit d74a58872c243bc766055d42f8280721629e3c82) Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
* gh-90717: Update the documentation for the altchars paremeter in base64 ↵Miss Islington (bot)2022-11-291-8/+11
| | | | | | | library (GH-94187) (cherry picked from commit 05dfc539c2de34021e44f621f2b7b993682ee200) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
* gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and ↵Miss Islington (bot)2022-11-295-41/+117
| | | | | | | | | | | | | TypeVarTuple (GH-99412) * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar. (cherry picked from commit 8f2fb7dfe72c882e97e524ef7ce40ceb663cc27e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-99811: Use correct variable to search for time in format string ↵Miss Islington (bot)2022-11-281-1/+1
| | | | | | (GH-99812) (GH-99851) (cherry picked from commit 1d1bb95abdcafe92c771fb3dc4722351b032cc24) Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
* `fnmatch` docs: link to `fnmatch.filter()`, not `builtins.filter()` (GH-99819)Miss Islington (bot)2022-11-281-1/+1
| | | | | (cherry picked from commit ca3e611b1f620eabb657ef08a95d5f5f554ea773) Co-authored-by: Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com>
* gh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342)Miss Islington (bot)2022-11-281-6/+25
| | | | | | | | | | | | | | | | | | | | These slots are marked "should be treated as read-only" in the table at the start of the document. That doesn't say anything about setting them in the static struct. `tp_bases` docs did say that it should be ``NULL`` (TIL!). If you ignore that, seemingly nothing bad happens. However, some slots may not be inherited, depending on which sub-slot structs are present. (FWIW, NumPy sets tp_bases and is affected by the quirk -- though to be fair, its DUAL_INHERIT code probably predates tp_bases docs, and also the result happens to be benign.) This patch makes things explicit. It also makes the summary table legend easier to scan. (cherry picked from commit 219696abb240607d3f807853c4c180825e60716e) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and ↵Kumar Aditya2022-11-283-11/+32
| | | | | | | | | segfaults (GH-18640) (#99841) Co-authored-by: Oren Milman <orenmn@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 53eef27133c1da395b3b4d7ce0ab1d5b743ffb41)
* bpo-41825: restructure docs for the os.wait*() family (GH-22356)Miss Islington (bot)2022-11-282-93/+145
| | | | | (cherry picked from commit 492dc02b01828f346dd62412fefc654e781de923) Co-authored-by: Georg Brandl <georg@python.org>
* gh-51524: Fix bug when calling trace.CoverageResults with valid infile ↵Miss Islington (bot)2022-11-273-1/+12
| | | | | | | | (GH-99629) (cherry picked from commit 594de165bf2f21d6b28eb17003ea78fc20c0ffed) Co-authored-by: Furkan Onder <furkanonder@protonmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Docs: both sqlite3 "point examples" now adapt to str (GH-99823)Miss Islington (bot)2022-11-271-1/+1
| | | | | (cherry picked from commit 276643e207d44c53b87a8108d5b00982defcce1e) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-91340: Document multiprocessing.set_start_method force parameter (GH-32339)Miss Islington (bot)2022-11-271-2/+6
| | | | | | | | | GH-91340 https://bugs.python.org/issue47184 (cherry picked from commit dfc2732a57e3ea6603d62f769d4f9c80be726fa4) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com> Automerge-Triggered-By: GH:kumaraditya303
* GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS ↵Miss Islington (bot)2022-11-273-98/+120
| | | | | | | | | | | | | | | (GH-99768) On macOS all file descriptors for a particular file in /dev/fd share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves more like ``dup(9)`` than a regular open. This causes problems when a user tries to run "/dev/fd/9" as a script because zipimport changes the file offset to try to read a zipfile directory. Therefore change zipimport to reset the file offset after trying to read the zipfile directory. (cherry picked from commit d08fb257698e3475d6f69bb808211d39e344e5b2) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* doc: Remove backslashes in doctest grammar docs (GH-29346)Miss Islington (bot)2022-11-261-3/+3
| | | | | (cherry picked from commit 22860dbbc8b53954055847d2bb036af68b4ea409) Co-authored-by: George Zhang <geetransit@gmail.com>
* bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (GH-24659)Miss Islington (bot)2022-11-261-2/+2
| | | | | | | | | The docs stated that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. (cherry picked from commit 62a5dc13e941d01beb215db4218a10977914ab55) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-91078: Return None from TarFile.next when the tarfile is empty (GH-91850)Miss Islington (bot)2022-11-263-0/+15
| | | | | | (cherry picked from commit 78365b8e283c78e23725748500f48dd2c2ca1161) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-99795: Fix typo in importlib.resources.abc (GH-99796)Miss Islington (bot)2022-11-261-1/+1
| | | | | | | | Changing TraversableReader to TraversableResources at one place of the documentation. See GH-99795 for more details. (cherry picked from commit 5f8898216e7b67b7de6b0b1aad9277e88bcebfdb) Co-authored-by: busywhitespace <busywhitespace@tuta.io>
* gh-97966: Restore prior expectation that uname_result._fields and ._asdict ↵Miss Islington (bot)2022-11-263-2/+14
| | | | | | | would include the processor. (gh-98343) (cherry picked from commit dc063a25d29840d863b15c86fdab15b4a1894c73) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler ↵Miss Islington (bot)2022-11-261-11/+3
| | | | | | | | (GH-95897) (cherry picked from commit ec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf) Co-authored-by: TheShermanTanker <32636402+TheShermanTanker@users.noreply.github.com> Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] gh-99502: mention bytes-like objects as input in ↵Miss Islington (bot)2022-11-261-1/+3
| | | | | | | | | | | | | `secrets.compare_digest` (GH-99512) (#99791) gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512) Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest It is the same function, just re-exported. So, I guess they should mention the same input types. (cherry picked from commit 47d673d81fc315069c14f9438ebe61fb70ef1ccc) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Fix typo in `__match_args__` doc (GH-99785)Miss Islington (bot)2022-11-251-1/+1
| | | | | | A opy of GH-98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again. (cherry picked from commit a86d8545221b16e714ffe3bda5afafc1d4748d13) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451)Miss Islington (bot)2022-11-251-7/+16
| | | | | | | Fix misspelling in docs for http.HTTPMethod (GH-99376) (cherry picked from commit f0d12ca0e0e31b678448b6192ebaf9720228d4fa) Co-authored-by: Matt Harasymczuk <github.com@haras.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-64019: Have attribute table in `inspect` docs link to module attributes ↵Miss Islington (bot)2022-11-251-6/+1
| | | | | | | | instead of listing them (GH-98116) (cherry picked from commit 7d2dcc53d09fe903329926bf7bbfe460b1465dab) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
* [3.11] gh-85073: Add some missing links to source (GH-99363) (#99586)Miss Islington (bot)2022-11-258-0/+22
| | | | | | | | gh-85073: Add some missing links to source (GH-99363) Add some missing links to source from Python docs (cherry picked from commit 27d8dc2c9d3de886a884f79f0621d4586c0e0f7a) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* bpo-38031: Fix a possible assertion failure in _io.FileIO() (GH-GH-5688)Miss Islington (bot)2022-11-253-1/+15
| | | | | (cherry picked from commit d386115039e75c332c8471c239cf7dc5dee791a7) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* gh-96168: Add sqlite3 row factory how-to (GH-99507)Miss Islington (bot)2022-11-251-41/+119
| | | | | | | (cherry picked from commit 8749121b07f48994ea47f2e7ff75fb13c13953f6) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Fix rendering of audioop license in Doc/license.rst (GH-99752)Miss Islington (bot)2022-11-241-0/+3
| | | | | | | Also some cosmetic blank line additions for consistency with the formatting of the rest of the file. (cherry picked from commit b5b3904f05e77f044f158307bc6bdd2bc1b670a2) Co-authored-by: Zachary Ware <zach@python.org>
* gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)Miss Islington (bot)2022-11-242-0/+2
| | | | | | | Issue: GH-98872 (cherry picked from commit 4e5f2db6f228d45a655cf22fd587792d56116145) Co-authored-by: SQLPATCH <95843853+SQLPATCH@users.noreply.github.com> Automerge-Triggered-By: GH:kumaraditya303
* Use faster APIs to calculate paths at startup for Store packaged Python on ↵Miss Islington (bot)2022-11-232-25/+51
| | | | | | | Windows (GH-99345) (cherry picked from commit 71a4a2da983a651bfcbc1be59c6e27508cdd05c6) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] gh-88863: Clear ref cycles to resolve leak when ↵Dong Uk, Kang2022-11-234-12/+36
| | | | | | | | | asyncio.open_connection raises (GH-95739) (#99721) Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame. (cherry picked from commit 995f6170c78570eca818f7e7dbd8a7661c171a81) Co-authored-by: Dong Uk, Kang <nailbrainz@gmail.com>
* gh-99619: fix error in documentation of ExceptionGroup.derive() (GH-99621)Miss Islington (bot)2022-11-231-6/+27
| | | | | (cherry picked from commit 5d9183c7ad68eb9ddb53d54a3f9a27e29dbabf31) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* GH-95283: Add note about compilers in Mac/README.txt (GH-99506)Miss Islington (bot)2022-11-231-0/+13
| | | | | | | | | The build machinery assumes that the compiler that's used to build on macOS includes an SDK that's at least as new as the OS version on the build machine. Explicitly mention this in Mac/README.txt. (cherry picked from commit 8f024a02d7d63315ecc3479f0715e927f48fc91b) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.11] gh-99650 : Updated argparse docs (GH-99653) (GH-99705)Miss Islington (bot)2022-11-221-1/+1
|
* GH-92892: Add section about variadic functions to ctypes documentation ↵Miss Islington (bot)2022-11-222-0/+21
| | | | | | | | | | | (GH-99529) On some platforms, and in particular macOS/arm64, the calling convention for variadic arguments is different from the regular calling convention. Add a section to the documentation to document this. (cherry picked from commit bc3a11d21ddef28047b18c0f6a5068fa9fb16da2) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.11] gh-99146 struct module documentation should have more predictable ↵Miss Islington (bot)2022-11-221-76/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | examples/warnings (GH-99141) (GH-99702) gh-99146 struct module documentation should have more predictable examples/warnings (GH-99141) * nail down a couple examples to have more predictable output * update a number of things, but this is really just a stash... * added an applications section to describe typical uses for native and machine-independent formats * make sure all format strings use a format prefix character * responding to comments from @gpshead. Not likely finished yet. * This got more involved than I expected... * respond to several PR comments * a lot of wordsmithing * try and be more consistent in use of ``x`` vs ``'x'`` * expand examples a bit * update the "see also" to be more up-to-date * original examples relied on import * so present all examples as if * reformat based on @gpshead comment (missed before) * responding to comments * missed this * one more suggested edit * wordsmithing (cherry picked from commit 22d91c16bb03c3d87f53b5fee10325b876262a78) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com> Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.11] gh-99645: Fix a bug in handling class cleanups in unittest.TestCase ↵Serhiy Storchaka2022-11-223-5/+35
| | | | | | | | | (GH-99646) (GH-99698) Now addClassCleanup() uses separate lists for different TestCase subclasses, and doClassCleanups() only cleans up the particular class. (cherry picked from commit c2102136be569e6fc8ed90181f229b46d07142f8)
* gh-93937: Document PyFrame_Check and PyFrame_Type (GH-99695)Miss Islington (bot)2022-11-221-0/+18
| | | | | (cherry picked from commit d15b9f19ac0ffb29b646735d69b29f48a71c247f) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). ↵Serhiy Storchaka2022-11-222-1/+2
| | | | | | (GH-99693) (cherry picked from commit f520d720f667c87f7b70ed86ea58d73892d6b969)
* GH-97001: Release GIL in termios extension (GH-99503)Miss Islington (bot)2022-11-222-12/+77
| | | | | | Without releasing the GIL calls to termios APIs might block the entire interpreter. (cherry picked from commit 959ba45d75953caa911e16b4c2a277978fc4b9b0) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* gh-99341: Cover type ignore nodes when incrementing line numbers (GH-99422)Miss Islington (bot)2022-11-223-0/+20
| | | | | (cherry picked from commit 1acdfec359fdf3db936168480be0f4157273c200) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* gh-99659: Use correct exceptions in sqlite3 bigmem tests (GH-99660)Miss Islington (bot)2022-11-222-4/+7
| | | | | | | | | The tests in question were added in 0eec6276fdcd by Serhiy. Apparently, sqlite3 changed exceptions raised in those cases in the mean time but the tests never ran because they require a high `-M` setting in the test runner. (cherry picked from commit 2781ec9b0e41a62cecc189c22dfc849f9a56927c) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-99662: fix typo in typing.TypeVarTuple docs (GH-99672)Miss Islington (bot)2022-11-211-1/+1
| | | | | (cherry picked from commit 1bf983ce7eb8bfd17dc18102b61dfbdafe0deda2) Co-authored-by: GabrielAnguita <60579349+GabrielAnguita@users.noreply.github.com>
* [3.11] gh-99103: Normalize specialized traceback anchors against the current ↵Batuhan Taskaya2022-11-214-5/+51
| | | | | | | | | | line (#99423) [3.11] gh-99103: Normalize specialized traceback anchors against the current line (GH-99145) Automerge-Triggered-By: GH:isidentical. (cherry picked from commit 57be5459593bbd09583317ebdafc4d58ae51dbf4) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* gh-98629: Fixes sys._git and sys.version creation on Windows (GH-99664)Miss Islington (bot)2022-11-212-1/+2
| | | | | (cherry picked from commit 49e554dbafc87245c1364ae00ad064a96f5cb995) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] Revert "[3.11] gh-98724: Fix Py_CLEAR() macro side effects (#99100)" ↵Victor Stinner2022-11-214-126/+27
| | | | | | | (#99573) Revert "gh-98724: Fix Py_CLEAR() macro side effects (#99100) (#99288)" This reverts commit 108289085719db8b227d65ce945e806f91be8f80.